Shuffle the virtual destructor down to the base. This should actually pacify
authorNick Lewycky <nicholas@mxc.ca>
Fri, 12 Oct 2012 04:28:25 +0000 (04:28 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 12 Oct 2012 04:28:25 +0000 (04:28 +0000)
-Wnon-virtual-dtor for real.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165787 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetTransformImpl.h
include/llvm/TargetTransformInfo.h

index 167fe53b3ac4cfe5b20663df9fe015ee9faedacb..7648f4f935c4fc10136a77caab40ab26986fbb43 100644 (file)
@@ -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;
index e1be3ba5a185872e3af4205a1fc0af8d6d9d8f41..82fc14dbd7434e0d33509965e772c93308c7ebb1 100644 (file)
@@ -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