diff options
author | Owen Anderson <resistor@mac.com> | 2007-10-23 20:58:37 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-10-23 20:58:37 +0000 |
commit | 9c614117da496ee58f64d5bf0708d55737445452 (patch) | |
tree | 9aa2a64ac01635d15e2ec0e23bdc9d2dd3838367 /llvm/lib/VMCore/Dominators.cpp | |
parent | 30efa2eec9818a05c1beb3f9fc378e6d20ad3861 (diff) | |
download | bcm5719-llvm-9c614117da496ee58f64d5bf0708d55737445452.tar.gz bcm5719-llvm-9c614117da496ee58f64d5bf0708d55737445452.zip |
Make DomTree and PostDomTree thin wrappers around DomTreeBase, rather than inheriting from it.
llvm-svn: 43259
Diffstat (limited to 'llvm/lib/VMCore/Dominators.cpp')
-rw-r--r-- | llvm/lib/VMCore/Dominators.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index b909a0014cd..5bb25d47d61 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/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; } |