[PATCH] D52920: Introduce code_model macros

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 5 10:53:50 PDT 2018


MaskRay added inline comments.


================
Comment at: test/Preprocessor/init.c:7992
+//
+// RUN: %clang -xc - -E -dD -mcmodel=medium --target=i386-unknown-linux < /dev/null | FileCheck -match-full-lines -check-prefix X86_MEDIUM %s
+// X86_MEDIUM:#define __code_model_medium_ 1
----------------
`-dM` here is better because it suppresses other CPP output (https://github.com/llvm-mirror/clang/tree/BindingDecl/lib/Frontend/CompilerInvocation.cpp#L2962)



Repository:
  rC Clang

https://reviews.llvm.org/D52920





More information about the cfe-commits mailing list