mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-18 09:09:12 +00:00
Fix problems compiling with G++ 4.x.x with -pedantic. Thanks to
Vladimir Merzliakov for the patch! llvm-svn: 20513
This commit is contained in:
parent
084980cdcd
commit
1b4201e69f
@ -163,28 +163,28 @@ public:
|
||||
enum TermOps { // These terminate basic blocks
|
||||
#define FIRST_TERM_INST(N) TermOpsBegin = N,
|
||||
#define HANDLE_TERM_INST(N, OPC, CLASS) OPC = N,
|
||||
#define LAST_TERM_INST(N) TermOpsEnd = N+1,
|
||||
#define LAST_TERM_INST(N) TermOpsEnd = N+1
|
||||
#include "llvm/Instruction.def"
|
||||
};
|
||||
|
||||
enum BinaryOps {
|
||||
#define FIRST_BINARY_INST(N) BinaryOpsBegin = N,
|
||||
#define HANDLE_BINARY_INST(N, OPC, CLASS) OPC = N,
|
||||
#define LAST_BINARY_INST(N) BinaryOpsEnd = N+1,
|
||||
#define LAST_BINARY_INST(N) BinaryOpsEnd = N+1
|
||||
#include "llvm/Instruction.def"
|
||||
};
|
||||
|
||||
enum MemoryOps {
|
||||
#define FIRST_MEMORY_INST(N) MemoryOpsBegin = N,
|
||||
#define HANDLE_MEMORY_INST(N, OPC, CLASS) OPC = N,
|
||||
#define LAST_MEMORY_INST(N) MemoryOpsEnd = N+1,
|
||||
#define LAST_MEMORY_INST(N) MemoryOpsEnd = N+1
|
||||
#include "llvm/Instruction.def"
|
||||
};
|
||||
|
||||
enum OtherOps {
|
||||
#define FIRST_OTHER_INST(N) OtherOpsBegin = N,
|
||||
#define HANDLE_OTHER_INST(N, OPC, CLASS) OPC = N,
|
||||
#define LAST_OTHER_INST(N) OtherOpsEnd = N+1,
|
||||
#define LAST_OTHER_INST(N) OtherOpsEnd = N+1
|
||||
#include "llvm/Instruction.def"
|
||||
};
|
||||
};
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
|
||||
NumTypeIDs, // Must remain as last defined ID
|
||||
LastPrimitiveTyID = LabelTyID,
|
||||
FirstDerivedTyID = FunctionTyID,
|
||||
FirstDerivedTyID = FunctionTyID
|
||||
};
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user