From b621decdadf0c53be98d6753be85179b7750bcd4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 May 2002 13:28:47 +0000 Subject: [PATCH] remove deprecated getInstType() method llvm-svn: 2595 --- llvm/include/llvm/CodeGen/InstrForest.h | 2 +- llvm/include/llvm/Instruction.h | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/llvm/include/llvm/CodeGen/InstrForest.h b/llvm/include/llvm/CodeGen/InstrForest.h index 86b59a6d4f9a..6242dd48f01f 100644 --- a/llvm/include/llvm/CodeGen/InstrForest.h +++ b/llvm/include/llvm/CodeGen/InstrForest.h @@ -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; diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h index cf7ce7dd50dd..9ab6f8a1064c 100644 --- a/llvm/include/llvm/Instruction.h +++ b/llvm/include/llvm/Instruction.h @@ -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; }