Remove unused method.

llvm-svn: 37416
This commit is contained in:
Devang Patel 2007-06-04 16:49:36 +00:00
parent 74785c1f3c
commit 8faaa37b1a

View File

@ -173,16 +173,13 @@ protected:
/// addNewBlock - Add a new node to the dominator tree information. This
/// creates a new node as a child of DomBB dominator node,linking it into
/// the children list of the immediate dominator.
DomTreeNode *addNewBlock(BasicBlock *BB, DomTreeNode *IDomNode) {
DomTreeNode *addNewBlock(BasicBlock *BB, BasicBlock *DomBB) {
assert(getNode(BB) == 0 && "Block already in dominator tree!");
DomTreeNode *IDomNode = getNode(DomBB);
assert(IDomNode && "Not immediate dominator specified for block!");
return DomTreeNodes[BB] = IDomNode->addChild(new DomTreeNode(BB, IDomNode));
}
DomTreeNode *addNewBlock(BasicBlock *BB, BasicBlock *DomBB) {
return addNewBlock(BB, getNode(DomBB));
}
/// changeImmediateDominator - This method is used to update the dominator
/// tree information when a node's immediate dominator changes.
///