summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/PseudoSourceValue.h
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2012-10-11 23:30:49 +0000
committerSean Silva <silvas@purdue.edu>2012-10-11 23:30:49 +0000
commited84062812c7b8a82d0e8128a22aa1aa07a14d79 (patch)
tree9453e4ed658f7721aa8ef3403ccc1bc1c6fa17bd /include/llvm/CodeGen/PseudoSourceValue.h
parent8a6538cd6117c5a7b1efb5c2e9cf172a5556c23e (diff)
downloadllvm-ed84062812c7b8a82d0e8128a22aa1aa07a14d79.tar.gz
llvm-ed84062812c7b8a82d0e8128a22aa1aa07a14d79.tar.bz2
llvm-ed84062812c7b8a82d0e8128a22aa1aa07a14d79.tar.xz
Remove unnecessary classof()'s
isa<> et al. automatically infer when the cast is an upcast (including a self-cast), so these are no longer necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/PseudoSourceValue.h')
-rw-r--r--include/llvm/CodeGen/PseudoSourceValue.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/PseudoSourceValue.h b/include/llvm/CodeGen/PseudoSourceValue.h
index 7dab4f9486..8f52d3bf47 100644
--- a/include/llvm/CodeGen/PseudoSourceValue.h
+++ b/include/llvm/CodeGen/PseudoSourceValue.h
@@ -50,7 +50,6 @@ namespace llvm {
/// classof - Methods for support type inquiry through isa, cast, and
/// dyn_cast:
///
- static inline bool classof(const PseudoSourceValue *) { return true; }
static inline bool classof(const Value *V) {
return V->getValueID() == PseudoSourceValueVal ||
V->getValueID() == FixedStackPseudoSourceValueVal;
@@ -90,9 +89,6 @@ namespace llvm {
/// classof - Methods for support type inquiry through isa, cast, and
/// dyn_cast:
///
- static inline bool classof(const FixedStackPseudoSourceValue *) {
- return true;
- }
static inline bool classof(const Value *V) {
return V->getValueID() == FixedStackPseudoSourceValueVal;
}