mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
remove deprecated getInstType() method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2595 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c0f3d23ae
commit
9f7fab5feb
include/llvm
@ -37,7 +37,7 @@ class InstrForest;
|
||||
//--------------------------------------------------------------------------
|
||||
// OpLabel values for special-case nodes created for instruction selection.
|
||||
// All op-labels not defined here are identical to the instruction
|
||||
// opcode returned by Instruction::getInstType()
|
||||
// opcode returned by Instruction::getOpcode()
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
const int InvalidOp = -1;
|
||||
|
@ -40,15 +40,12 @@ public:
|
||||
virtual bool hasSideEffects() const { return false; } // Memory & Call insts
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Subclass classification... getInstType() returns a member of
|
||||
// Subclass classification... getOpcode() returns a member of
|
||||
// one of the enums that is coming soon (down below)...
|
||||
//
|
||||
virtual const char *getOpcodeName() const = 0;
|
||||
unsigned getOpcode() const { return iType; }
|
||||
|
||||
// getInstType is deprecated, use getOpcode() instead.
|
||||
unsigned getInstType() const { return iType; }
|
||||
|
||||
inline bool isTerminator() const { // Instance of TerminatorInst?
|
||||
return iType >= FirstTermOp && iType < NumTermOps;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user