summaryrefslogtreecommitdiff
path: root/lib/VMCore/Dominators.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-10-08 07:44:39 +0000
committerOwen Anderson <resistor@mac.com>2007-10-08 07:44:39 +0000
commit1aad74c9e8aba2ad0493620d35966ee3964c1ecb (patch)
treef6b5fb1f283bf12cd29d844f67250eb4aa628176 /lib/VMCore/Dominators.cpp
parent537d5c27ff64b021ba14e2dc9589bf321dd2327a (diff)
downloadllvm-1aad74c9e8aba2ad0493620d35966ee3964c1ecb.tar.gz
llvm-1aad74c9e8aba2ad0493620d35966ee3964c1ecb.tar.bz2
llvm-1aad74c9e8aba2ad0493620d35966ee3964c1ecb.tar.xz
Begin the process of allowing DomTree on MBB's. Step One: template DomTreeNode by making it a typedef of a templated DomTreeNodeBase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r--lib/VMCore/Dominators.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp
index 4e728ac3d4..84a60257d2 100644
--- a/lib/VMCore/Dominators.cpp
+++ b/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);