File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -911,7 +911,7 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
911
911
std::string CodeModel = getTargetOpts ().CodeModel ;
912
912
if (CodeModel == " default" )
913
913
CodeModel = " small" ;
914
- Builder.defineMacro (" __code_model_" + CodeModel + " _ " );
914
+ Builder.defineMacro (" __code_model_" + CodeModel + " __ " );
915
915
916
916
// Target identification.
917
917
if (getTriple ().getArch () == llvm::Triple::x86_64) {
Original file line number Diff line number Diff line change 6198
6198
// X86_64:#define __WINT_WIDTH__ 32
6199
6199
// X86_64:#define __amd64 1
6200
6200
// X86_64:#define __amd64__ 1
6201
- // X86_64:#define __code_model_small_ 1
6201
+ // X86_64:#define __code_model_small__ 1
6202
6202
// X86_64:#define __x86_64 1
6203
6203
// X86_64:#define __x86_64__ 1
6204
6204
//
6210
6210
// X86_64H:#define __x86_64h__ 1
6211
6211
//
6212
6212
// RUN: %clang -xc - -E -dM -mcmodel=medium --target=i386-unknown-linux < /dev/null | FileCheck -match-full-lines -check-prefix X86_MEDIUM %s
6213
- // X86_MEDIUM:#define __code_model_medium_ 1
6213
+ // X86_MEDIUM:#define __code_model_medium__ 1
6214
6214
//
6215
6215
// RUN: %clang_cc1 -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=x86_64-none-none-gnux32 < /dev/null | FileCheck -match-full-lines -check-prefix X32 %s
6216
6216
// RUN: %clang_cc1 -x c++ -E -dM -ffreestanding -fgnuc-version=4.2.1 -triple=x86_64-none-none-gnux32 < /dev/null | FileCheck -match-full-lines -check-prefix X32 -check-prefix X32-CXX %s
You can’t perform that action at this time.
0 commit comments