From: Chandler Carruth Date: Wed, 14 Jan 2015 10:33:21 +0000 (+0000) Subject: [dom] Make the DominatorTreeBase not a dynamic class! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4010b7d75a7836aa656d246a412845002aac3dd9;p=oota-llvm.git [dom] Make the DominatorTreeBase not a dynamic class! Now that the passes are wrappers around this, we no longer need a vtable, virtual destructor, and other associated mess. This is particularly nice to me as this is a class template. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225970 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/GenericDomTree.h b/include/llvm/Support/GenericDomTree.h index fa56f9a295f..fde56135a96 100644 --- a/include/llvm/Support/GenericDomTree.h +++ b/include/llvm/Support/GenericDomTree.h @@ -314,7 +314,7 @@ protected: public: explicit DominatorTreeBase(bool isPostDom) : DominatorBase(isPostDom), DFSInfoValid(false), SlowQueries(0) {} - virtual ~DominatorTreeBase() { reset(); } + ~DominatorTreeBase() { reset(); } DominatorTreeBase(DominatorTreeBase &&Arg) : DominatorBase( @@ -368,7 +368,7 @@ public: return false; } - virtual void releaseMemory() { reset(); } + void releaseMemory() { reset(); } /// getNode - return the (Post)DominatorTree node for the specified basic /// block. This is the same as using operator[] on this class.