[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32Relocations.h
Reid Spencer
reid at x10sys.com
Wed Jun 8 10:44:59 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPC32Relocations.h updated: 1.3 -> 1.4
---
Log message:
For PR572: http://llvm.cs.uiuc.edu/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.
---
Diffs of the changes: (+6 -0)
PPC32Relocations.h | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/Target/PowerPC/PPC32Relocations.h
diff -u llvm/lib/Target/PowerPC/PPC32Relocations.h:1.3 llvm/lib/Target/PowerPC/PPC32Relocations.h:1.4
--- llvm/lib/Target/PowerPC/PPC32Relocations.h:1.3 Thu Apr 21 18:20:02 2005
+++ llvm/lib/Target/PowerPC/PPC32Relocations.h Wed Jun 8 12:44:48 2005
@@ -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 {
More information about the llvm-commits
mailing list