Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 53856be

Browse files
committed
To avoid symbol clash, undefine PPC here. PPC may be predefined on some hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177234 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent df41cf0 commit 53856be

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

lib/Target/PowerPC/MCTargetDesc/PPCFixupKinds.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include "llvm/MC/MCFixup.h"
1414

15+
#undef PPC
16+
1517
namespace llvm {
1618
namespace PPC {
1719
enum Fixups {

lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS,
4747
uint8_t OSABI);
4848
} // End llvm namespace
4949

50+
// Generated files will use "namespace PPC". To avoid symbol clash,
51+
// undefine PPC here. PPC may be predefined on some hosts.
52+
#undef PPC
53+
5054
// Defines symbolic names for PowerPC registers. This defines a mapping from
5155
// register name to register number.
5256
//

lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
// GCC #defines PPC on Linux but we use it as our namespace name
1818
#undef PPC
1919

20+
// Generated files will use "namespace PPC". To avoid symbol clash,
21+
// undefine PPC here. PPC may be predefined on some hosts.
22+
#undef PPC
23+
2024
namespace llvm {
2125
namespace PPC {
2226
/// Predicate - These are "(BI << 5) | BO" for various predicates.

0 commit comments

Comments
 (0)