summaryrefslogtreecommitdiff
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-04-13 18:12:09 +0000
committerDan Gohman <gohman@apple.com>2007-04-13 18:12:09 +0000
commita1a702cdd23221e6e3f36632be91150138958e9d (patch)
treedb45bd3350280f315b292069ebe826d568cc3b3f /include/llvm/Constant.h
parent8085bcfdca515a359c746ea475a3b8e9cac1c077 (diff)
downloadllvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.gz
llvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.bz2
llvm-a1a702cdd23221e6e3f36632be91150138958e9d.tar.xz
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/Constant.h')
-rw-r--r--include/llvm/Constant.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index 4b3547ebf8..bfe65a6faa 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -88,8 +88,8 @@ public:
static inline bool classof(const Constant *) { return true; }
static inline bool classof(const GlobalValue *) { return true; }
static inline bool classof(const Value *V) {
- return V->getValueType() >= ConstantFirstVal &&
- V->getValueType() <= ConstantLastVal;
+ return V->getValueID() >= ConstantFirstVal &&
+ V->getValueID() <= ConstantLastVal;
}
/// replaceUsesOfWithOnConstant - This method is a special form of