diff options
author | Sean Silva <silvas@purdue.edu> | 2012-10-11 23:30:49 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2012-10-11 23:30:49 +0000 |
commit | ed84062812c7b8a82d0e8128a22aa1aa07a14d79 (patch) | |
tree | 9453e4ed658f7721aa8ef3403ccc1bc1c6fa17bd /include/llvm/Operator.h | |
parent | 8a6538cd6117c5a7b1efb5c2e9cf172a5556c23e (diff) | |
download | external_llvm-ed84062812c7b8a82d0e8128a22aa1aa07a14d79.zip external_llvm-ed84062812c7b8a82d0e8128a22aa1aa07a14d79.tar.gz external_llvm-ed84062812c7b8a82d0e8128a22aa1aa07a14d79.tar.bz2 |
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/Operator.h')
-rw-r--r-- | include/llvm/Operator.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/Operator.h b/include/llvm/Operator.h index 61ac163..bc5da8e 100644 --- a/include/llvm/Operator.h +++ b/include/llvm/Operator.h @@ -60,7 +60,6 @@ public: return Instruction::UserOp1; } - static inline bool classof(const Operator *) { return true; } static inline bool classof(const Instruction *) { return true; } static inline bool classof(const ConstantExpr *) { return true; } static inline bool classof(const Value *V) { @@ -106,7 +105,6 @@ public: return (SubclassOptionalData & NoSignedWrap) != 0; } - static inline bool classof(const OverflowingBinaryOperator *) { return true; } static inline bool classof(const Instruction *I) { return I->getOpcode() == Instruction::Add || I->getOpcode() == Instruction::Sub || @@ -180,7 +178,6 @@ public: /// default precision. float getFPAccuracy() const; - static inline bool classof(const FPMathOperator *) { return true; } static inline bool classof(const Instruction *I) { return I->getType()->isFPOrFPVectorTy(); } @@ -196,9 +193,6 @@ template<typename SuperClass, unsigned Opc> class ConcreteOperator : public SuperClass { ~ConcreteOperator() LLVM_DELETED_FUNCTION; public: - static inline bool classof(const ConcreteOperator<SuperClass, Opc> *) { - return true; - } static inline bool classof(const Instruction *I) { return I->getOpcode() == Opc; } |