diff options
author | Dan Gohman <gohman@apple.com> | 2007-04-13 18:12:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-04-13 18:12:09 +0000 |
commit | a1a702cdd23221e6e3f36632be91150138958e9d (patch) | |
tree | db45bd3350280f315b292069ebe826d568cc3b3f /include/llvm/Instruction.h | |
parent | 8085bcfdca515a359c746ea475a3b8e9cac1c077 (diff) | |
download | external_llvm-a1a702cdd23221e6e3f36632be91150138958e9d.zip external_llvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.gz external_llvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.bz2 |
Rename Value::getValueType to getValueID, to avoid confusion with
other things named getValueType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r-- | include/llvm/Instruction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index bda59e9..ed0357f 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -110,7 +110,7 @@ public: /// Subclass classification... getOpcode() returns a member of /// one of the enums that is coming soon (down below)... /// - unsigned getOpcode() const { return getValueType() - InstructionVal; } + unsigned getOpcode() const { return getValueID() - InstructionVal; } const char *getOpcodeName() const { return getOpcodeName(getOpcode()); } @@ -193,7 +193,7 @@ public: /// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const Instruction *) { return true; } static inline bool classof(const Value *V) { - return V->getValueType() >= Value::InstructionVal; + return V->getValueID() >= Value::InstructionVal; } //---------------------------------------------------------------------- |