diff options
author | Devang Patel <dpatel@apple.com> | 2007-06-04 16:49:36 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-06-04 16:49:36 +0000 |
commit | bbf8c8e71f53ff55c9756efb1e9238c7d3e1451b (patch) | |
tree | d21a9f64410e212b89be464665d94dc760817524 | |
parent | 83beaee227dad622a7e378897c6f29b511388fa0 (diff) |
Remove unused method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 03eab60034..371d9e1240 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -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. /// |