summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-10-12 04:28:25 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-10-12 04:28:25 +0000
commitf117f93f6ecda058f546e01dc4b5d9fe7827cce6 (patch)
tree061dc08d376a309017821ca959799185275e83ec /include
parent863ff7c9037d06e77cd4d39c637707aa135db40d (diff)
downloadllvm-f117f93f6ecda058f546e01dc4b5d9fe7827cce6.tar.gz
llvm-f117f93f6ecda058f546e01dc4b5d9fe7827cce6.tar.bz2
llvm-f117f93f6ecda058f546e01dc4b5d9fe7827cce6.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetTransformImpl.h2
-rw-r--r--include/llvm/TargetTransformInfo.h2
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