mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user