From: Nick Lewycky Date: Fri, 12 Oct 2012 04:28:25 +0000 (+0000) Subject: Shuffle the virtual destructor down to the base. This should actually pacify X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f117f93f6ecda058f546e01dc4b5d9fe7827cce6;p=oota-llvm.git Shuffle the virtual destructor down to the base. This should actually pacify -Wnon-virtual-dtor for real. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165787 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetTransformImpl.h b/include/llvm/Target/TargetTransformImpl.h index 167fe53b3ac..7648f4f935c 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 e1be3ba5a18..82fc14dbd74 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