From 8086cfaa6a380d2b5ec8ba036ec1129b2969ffc5 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 8 Jun 2005 17:44:48 +0000 Subject: [PATCH] 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. llvm-svn: 22202 --- llvm/lib/Target/PowerPC/PPC32Relocations.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/lib/Target/PowerPC/PPC32Relocations.h b/llvm/lib/Target/PowerPC/PPC32Relocations.h index 474d733664e2..d3c32c1bc889 100644 --- a/llvm/lib/Target/PowerPC/PPC32Relocations.h +++ b/llvm/lib/Target/PowerPC/PPC32Relocations.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 {