diff options
-rw-r--r-- | include/llvm/Target/TargetTransformImpl.h | 2 | ||||
-rw-r--r-- | include/llvm/TargetTransformInfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetTransformImpl.h b/include/llvm/Target/TargetTransformImpl.h index 167fe53b3a..7648f4f935 100644 --- a/include/llvm/Target/TargetTransformImpl.h +++ b/include/llvm/Target/TargetTransformImpl.h @@ -32,8 +32,6 @@ public: /// Ctor explicit ScalarTargetTransformImpl(const TargetLowering *TL) : TLI(TL) {} - virtual ~ScalarTargetTransformImpl() {} - virtual bool isLegalAddImmediate(int64_t imm) const; virtual bool isLegalICmpImmediate(int64_t imm) const; diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h index e1be3ba5a1..82fc14dbd7 100644 --- a/include/llvm/TargetTransformInfo.h +++ b/include/llvm/TargetTransformInfo.h @@ -75,6 +75,8 @@ public: /// LSR, and LowerInvoke use this interface. class ScalarTargetTransformInfo { public: + virtual ~ScalarTargetTransformInfo() {} + /// isLegalAddImmediate - Return true if the specified immediate is legal /// add immediate, that is the target has add instructions which can add /// a register with the immediate without having to materialize the |