[llvm-commits] [llvm] r165787 - in /llvm/trunk/include/llvm: Target/TargetTransformImpl.h TargetTransformInfo.h
Nick Lewycky
nicholas at mxc.ca
Thu Oct 11 21:28:25 PDT 2012
Author: nicholas
Date: Thu Oct 11 23:28:25 2012
New Revision: 165787
URL: http://llvm.org/viewvc/llvm-project?rev=165787&view=rev
Log:
Shuffle the virtual destructor down to the base. This should actually pacify
-Wnon-virtual-dtor for real.
Modified:
llvm/trunk/include/llvm/Target/TargetTransformImpl.h
llvm/trunk/include/llvm/TargetTransformInfo.h
Modified: llvm/trunk/include/llvm/Target/TargetTransformImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetTransformImpl.h?rev=165787&r1=165786&r2=165787&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetTransformImpl.h (original)
+++ llvm/trunk/include/llvm/Target/TargetTransformImpl.h Thu Oct 11 23:28:25 2012
@@ -32,8 +32,6 @@
/// Ctor
explicit ScalarTargetTransformImpl(const TargetLowering *TL) : TLI(TL) {}
- virtual ~ScalarTargetTransformImpl() {}
-
virtual bool isLegalAddImmediate(int64_t imm) const;
virtual bool isLegalICmpImmediate(int64_t imm) const;
Modified: llvm/trunk/include/llvm/TargetTransformInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TargetTransformInfo.h?rev=165787&r1=165786&r2=165787&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TargetTransformInfo.h (original)
+++ llvm/trunk/include/llvm/TargetTransformInfo.h Thu Oct 11 23:28:25 2012
@@ -75,6 +75,8 @@
/// 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
More information about the llvm-commits
mailing list