Inline the d'tor and add an anchor instead.
authorBill Wendling <isanbard@gmail.com>
Tue, 13 Mar 2012 05:51:56 +0000 (05:51 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 13 Mar 2012 05:51:56 +0000 (05:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152613 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index f921ca20be020e7e9d9ec40c2eb4655c2c57e3fe..c101473c8bae06b90562128ca7d7840b99e521e1 100644 (file)
@@ -820,8 +820,9 @@ public:
   /// the DAG can optionally implement this interface.  This allows the clients
   /// to handle the various sorts of updates that happen.
   class DAGUpdateListener {
+    virtual void anchor();
   public:
-    virtual ~DAGUpdateListener();
+    virtual ~DAGUpdateListener() {}
 
     /// NodeDeleted - The node N that was deleted and, if E is not null, an
     /// equivalent node E that replaced it.
index 34659bb1a4174bb328c98734ae77adc14c23b3ec..e2ae678930411a679cb15f08ce446d7126478d28 100644 (file)
@@ -70,7 +70,7 @@ static const fltSemantics *EVTToAPFloatSemantics(EVT VT) {
   }
 }
 
-SelectionDAG::DAGUpdateListener::~DAGUpdateListener() {}
+SelectionDAG::DAGUpdateListener::anchor() {}
 
 //===----------------------------------------------------------------------===//
 //                              ConstantFPSDNode Class