From bf565702dcffb57a96612b529b68b4375244084f Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 13 Mar 2012 05:51:56 +0000 Subject: [PATCH] Inline the d'tor and add an anchor instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152613 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/SelectionDAG.h | 3 ++- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index f921ca20be0..c101473c8ba 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -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. diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 34659bb1a41..e2ae6789304 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -70,7 +70,7 @@ static const fltSemantics *EVTToAPFloatSemantics(EVT VT) { } } -SelectionDAG::DAGUpdateListener::~DAGUpdateListener() {} +SelectionDAG::DAGUpdateListener::anchor() {} //===----------------------------------------------------------------------===// // ConstantFPSDNode Class -- 2.34.1