aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 7066523..96f2637 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -45,9 +45,12 @@ public:
// Subclass classification... getInstType() returns a member of
// one of the enums that is coming soon (down below)...
//
- virtual string getOpcode() const = 0;
+ 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;
}