[cfe-commits] r134411 - /cfe/trunk/lib/Basic/Targets.cpp
Joerg Sonnenberger
joerg at bec.de
Tue Jul 5 07:56:12 PDT 2011
Author: joerg
Date: Tue Jul 5 09:56:12 2011
New Revision: 134411
URL: http://llvm.org/viewvc/llvm-project?rev=134411&view=rev
Log:
Don't define _BIG_ENDIAN for NetBSD/PowerPC.
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=134411&r1=134410&r2=134411&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Jul 5 09:56:12 2011
@@ -674,7 +674,8 @@
}
// Target properties.
- Builder.defineMacro("_BIG_ENDIAN");
+ if (getTriple().getOS() != llvm::Triple::NetBSD)
+ Builder.defineMacro("_BIG_ENDIAN");
Builder.defineMacro("__BIG_ENDIAN__");
// Subtarget options.
More information about the cfe-commits
mailing list