summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-06-08 17:44:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-06-08 17:44:48 +0000
commiteae435de837ea659fba924c1531ced120a6dde76 (patch)
treef05a0a0432dd5296865823e05424768ef84db1f0
parentb2c4bf3ff696577e8f00930cabe90d80f275fa80 (diff)
downloadllvm-eae435de837ea659fba924c1531ced120a6dde76.tar.gz
llvm-eae435de837ea659fba924c1531ced120a6dde76.tar.bz2
llvm-eae435de837ea659fba924c1531ced120a6dde76.tar.xz
For PR572:
Undefine the PPC symbol which is defined by Linux/PPC (erroneously) so it doesn't pollute the user namespace and clash with our namespace declarations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22202 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCRelocations.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCRelocations.h b/lib/Target/PowerPC/PPCRelocations.h
index 474d733664..d3c32c1bc8 100644
--- a/lib/Target/PowerPC/PPCRelocations.h
+++ b/lib/Target/PowerPC/PPCRelocations.h
@@ -16,6 +16,12 @@
#include "llvm/CodeGen/MachineRelocation.h"
+// Hack to rid us of a PPC pre-processor symbol which is erroneously
+// defined in a PowerPC header file (bug in Linux/PPC)
+#ifdef PPC
+#undef PPC
+#endif
+
namespace llvm {
namespace PPC {
enum RelocationType {