Don't define _BIG_ENDIAN for NetBSD/PowerPC.

llvm-svn: 134411
This commit is contained in:
Joerg Sonnenberger 2011-07-05 14:56:12 +00:00
parent a6d11777f9
commit 870b3c5429
1 changed files with 2 additions and 1 deletions

View File

@ -674,7 +674,8 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
}
// Target properties.
Builder.defineMacro("_BIG_ENDIAN");
if (getTriple().getOS() != llvm::Triple::NetBSD)
Builder.defineMacro("_BIG_ENDIAN");
Builder.defineMacro("__BIG_ENDIAN__");
// Subtarget options.