mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
aeffb4af8b
commit
82870e0b73
@ -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