[llvm-commits] [PATCH] Target/PowerPC: [PR10969] Fix build error on some ppc hosts to #undef PPC, due to predefined macro PPC.
NAKAMURA Takumi
geek4civic at gmail.com
Thu Sep 22 21:21:57 PDT 2011
> lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h | 4 ++++
> lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h | 4 ++++
> 2 files changed, 8 insertions(+), 0 deletions(-)
Er, I need to tweak one more file.
--- a/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
+++ b/lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h
@@ -12,6 +12,10 @@
#include "llvm/MC/MCFixup.h"
+// Generated files will use "namespace PPC". To avoid symbol clash,
+// undefine PPC here. PPC may be predefined on some hosts.
+#undef PPC
+
namespace llvm {
namespace PPC {
enum Fixups {
...Takumi
More information about the llvm-commits
mailing list