mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[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
This commit is contained in:
@@ -314,7 +314,7 @@ protected:
|
|||||||
public:
|
public:
|
||||||
explicit DominatorTreeBase(bool isPostDom)
|
explicit DominatorTreeBase(bool isPostDom)
|
||||||
: DominatorBase<NodeT>(isPostDom), DFSInfoValid(false), SlowQueries(0) {}
|
: DominatorBase<NodeT>(isPostDom), DFSInfoValid(false), SlowQueries(0) {}
|
||||||
virtual ~DominatorTreeBase() { reset(); }
|
~DominatorTreeBase() { reset(); }
|
||||||
|
|
||||||
DominatorTreeBase(DominatorTreeBase &&Arg)
|
DominatorTreeBase(DominatorTreeBase &&Arg)
|
||||||
: DominatorBase<NodeT>(
|
: DominatorBase<NodeT>(
|
||||||
@@ -368,7 +368,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void releaseMemory() { reset(); }
|
void releaseMemory() { reset(); }
|
||||||
|
|
||||||
/// getNode - return the (Post)DominatorTree node for the specified basic
|
/// getNode - return the (Post)DominatorTree node for the specified basic
|
||||||
/// block. This is the same as using operator[] on this class.
|
/// block. This is the same as using operator[] on this class.
|
||||||
|
Reference in New Issue
Block a user