some mips and some sparc compilers apparently
authorChris Lattner <sabre@nondot.org>
Wed, 26 Aug 2009 05:00:16 +0000 (05:00 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 26 Aug 2009 05:00:16 +0000 (05:00 +0000)
predefine mips and sparc respectively.  Just overrule them :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80072 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h

index 46bf90082ec02e8bd92dd661608dfb3627690d30..03ecd708fff09bd14d8bf2c50e62140f560baf6c 100644 (file)
 #include "llvm/ADT/StringRef.h"
 #include <string>
 
+// Some system headers or GCC predefined macros conflict with identifiers in
+// this file.  Undefine them here.
+#undef mips
+#undef sparc
+
 namespace llvm {
 class StringRef;
 class Twine;