aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Dominators.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-10-23 20:58:37 +0000
committerOwen Anderson <resistor@mac.com>2007-10-23 20:58:37 +0000
commitd20cc14dbf6d54d896e67b9920cd9bccdc14c41a (patch)
treeb79b117fe5e3ab6d2046c2adecc3c604549b7869 /lib/VMCore/Dominators.cpp
parent7bb175b4d12e3a22a66a26f0e9ba2ebd4406acc7 (diff)
Make DomTree and PostDomTree thin wrappers around DomTreeBase, rather than inheriting from it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r--lib/VMCore/Dominators.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp
index b909a0014c..5bb25d47d6 100644
--- a/lib/VMCore/Dominators.cpp
+++ b/lib/VMCore/Dominators.cpp
@@ -57,17 +57,7 @@ static RegisterPass<DominatorTree>
E("domtree", "Dominator Tree Construction", true);
bool DominatorTree::runOnFunction(Function &F) {
- reset(); // Reset from the last time we were run...
-
- // Initialize roots
- Roots.push_back(&F.getEntryBlock());
- IDoms[&F.getEntryBlock()] = 0;
- DomTreeNodes[&F.getEntryBlock()] = 0;
- Vertex.push_back(0);
-
- Calculate<BasicBlock*, GraphTraits<BasicBlock*> >(*this, F);
-
- updateDFSNumbers();
+ DT->recalculate(F);
return false;
}