diff options
author | Owen Anderson <resistor@mac.com> | 2007-10-08 07:44:39 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-10-08 07:44:39 +0000 |
commit | 74529b7d5f51b78e11e5bc37a508ded875812c92 (patch) | |
tree | 1549e352c6931645cb52e4313c55b0690e2f2efd /llvm/lib | |
parent | 21a58a72c5877d8b14dc53ad1507c178bc632536 (diff) | |
download | bcm5719-llvm-74529b7d5f51b78e11e5bc37a508ded875812c92.tar.gz bcm5719-llvm-74529b7d5f51b78e11e5bc37a508ded875812c92.zip |
Begin the process of allowing DomTree on MBB's. Step One: template DomTreeNode by making it a typedef of a templated DomTreeNodeBase.
llvm-svn: 42743
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/Dominators.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/VMCore/Dominators.cpp b/llvm/lib/VMCore/Dominators.cpp index 4e728ac3d44..84a60257d22 100644 --- a/llvm/lib/VMCore/Dominators.cpp +++ b/llvm/lib/VMCore/Dominators.cpp @@ -276,22 +276,6 @@ BasicBlock *DominatorTreeBase::findNearestCommonDominator(BasicBlock *A, return NULL; } -void DomTreeNode::setIDom(DomTreeNode *NewIDom) { - assert(IDom && "No immediate dominator?"); - if (IDom != NewIDom) { - std::vector<DomTreeNode*>::iterator I = - std::find(IDom->Children.begin(), IDom->Children.end(), this); - assert(I != IDom->Children.end() && - "Not in immediate dominator children set!"); - // I am no longer your child... - IDom->Children.erase(I); - - // Switch to new dominator - IDom = NewIDom; - IDom->Children.push_back(this); - } -} - static std::ostream &operator<<(std::ostream &o, const DomTreeNode *Node) { if (Node->getBlock()) WriteAsOperand(o, Node->getBlock(), false); |