[llvm-commits] [llvm] r80072 - /llvm/trunk/include/llvm/ADT/Triple.h

Chris Lattner sabre at nondot.org
Tue Aug 25 22:00:16 PDT 2009


Author: lattner
Date: Wed Aug 26 00:00:16 2009
New Revision: 80072

URL: http://llvm.org/viewvc/llvm-project?rev=80072&view=rev
Log:
some mips and some sparc compilers apparently 
predefine mips and sparc respectively.  Just overrule them :)

Modified:
    llvm/trunk/include/llvm/ADT/Triple.h

Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=80072&r1=80071&r2=80072&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Wed Aug 26 00:00:16 2009
@@ -13,6 +13,11 @@
 #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;





More information about the llvm-commits mailing list