diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-01-14 10:33:21 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-01-14 10:33:21 +0000 |
| commit | a18dcf7efdf0a0574bbdf67cfa66f51aa3373568 (patch) | |
| tree | 82a08ec18a33b1760f6eef68a52529d069bc17a9 | |
| parent | 64764b446b9339ef14ac0b9b7b5063b8abc3190a (diff) | |
| download | bcm5719-llvm-a18dcf7efdf0a0574bbdf67cfa66f51aa3373568.tar.gz bcm5719-llvm-a18dcf7efdf0a0574bbdf67cfa66f51aa3373568.zip | |
[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. =]
llvm-svn: 225970
| -rw-r--r-- | llvm/include/llvm/Support/GenericDomTree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/GenericDomTree.h b/llvm/include/llvm/Support/GenericDomTree.h index fa56f9a295f..fde56135a96 100644 --- a/llvm/include/llvm/Support/GenericDomTree.h +++ b/llvm/include/llvm/Support/GenericDomTree.h @@ -314,7 +314,7 @@ protected: public: explicit DominatorTreeBase(bool isPostDom) : DominatorBase<NodeT>(isPostDom), DFSInfoValid(false), SlowQueries(0) {} - virtual ~DominatorTreeBase() { reset(); } + ~DominatorTreeBase() { reset(); } DominatorTreeBase(DominatorTreeBase &&Arg) : DominatorBase<NodeT>( @@ -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. |

