And now we can call the other 'get' method from this one and not duplicate the code.
[oota-llvm.git] / include / llvm / TargetTransformInfo.h
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