Fix problems compiling with G++ 4.x.x with -pedantic. Thanks to

Vladimir Merzliakov for the patch!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-03-07 20:35:45 +00:00
parent aeffb4af8b
commit 82870e0b73
2 changed files with 5 additions and 5 deletions

View File

@ -163,28 +163,28 @@ public:
enum TermOps { // These terminate basic blocks enum TermOps { // These terminate basic blocks
#define FIRST_TERM_INST(N) TermOpsBegin = N, #define FIRST_TERM_INST(N) TermOpsBegin = N,
#define HANDLE_TERM_INST(N, OPC, CLASS) OPC = 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" #include "llvm/Instruction.def"
}; };
enum BinaryOps { enum BinaryOps {
#define FIRST_BINARY_INST(N) BinaryOpsBegin = N, #define FIRST_BINARY_INST(N) BinaryOpsBegin = N,
#define HANDLE_BINARY_INST(N, OPC, CLASS) OPC = 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" #include "llvm/Instruction.def"
}; };
enum MemoryOps { enum MemoryOps {
#define FIRST_MEMORY_INST(N) MemoryOpsBegin = N, #define FIRST_MEMORY_INST(N) MemoryOpsBegin = N,
#define HANDLE_MEMORY_INST(N, OPC, CLASS) OPC = 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" #include "llvm/Instruction.def"
}; };
enum OtherOps { enum OtherOps {
#define FIRST_OTHER_INST(N) OtherOpsBegin = N, #define FIRST_OTHER_INST(N) OtherOpsBegin = N,
#define HANDLE_OTHER_INST(N, OPC, CLASS) OPC = 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" #include "llvm/Instruction.def"
}; };
}; };

View File

@ -78,7 +78,7 @@ public:
NumTypeIDs, // Must remain as last defined ID NumTypeIDs, // Must remain as last defined ID
LastPrimitiveTyID = LabelTyID, LastPrimitiveTyID = LabelTyID,
FirstDerivedTyID = FunctionTyID, FirstDerivedTyID = FunctionTyID
}; };
private: private: