[cfe-commits] r152740 - /cfe/trunk/lib/Basic/Targets.cpp
Aaron Ballman
aaron at aaronballman.com
Wed Mar 14 13:50:58 PDT 2012
Author: aaronballman
Date: Wed Mar 14 15:50:57 2012
New Revision: 152740
URL: http://llvm.org/viewvc/llvm-project?rev=152740&view=rev
Log:
No longer defining LP64 in 64-bit builds on platforms which are not LP64.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=152740&r1=152739&r2=152740&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Mar 14 15:50:57 2012
@@ -1894,8 +1894,10 @@
MacroBuilder &Builder) const {
// Target identification.
if (PointerWidth == 64) {
- Builder.defineMacro("_LP64");
- Builder.defineMacro("__LP64__");
+ if (getLongWidth() == 64) {
+ Builder.defineMacro("_LP64");
+ Builder.defineMacro("__LP64__");
+ }
Builder.defineMacro("__amd64__");
Builder.defineMacro("__amd64");
Builder.defineMacro("__x86_64");
More information about the cfe-commits
mailing list