mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Remove unused method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
83beaee227
commit
bbf8c8e71f
@ -173,16 +173,13 @@ protected:
|
|||||||
/// addNewBlock - Add a new node to the dominator tree information. This
|
/// 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
|
/// creates a new node as a child of DomBB dominator node,linking it into
|
||||||
/// the children list of the immediate dominator.
|
/// 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!");
|
assert(getNode(BB) == 0 && "Block already in dominator tree!");
|
||||||
|
DomTreeNode *IDomNode = getNode(DomBB);
|
||||||
assert(IDomNode && "Not immediate dominator specified for block!");
|
assert(IDomNode && "Not immediate dominator specified for block!");
|
||||||
return DomTreeNodes[BB] = IDomNode->addChild(new DomTreeNode(BB, IDomNode));
|
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
|
/// changeImmediateDominator - This method is used to update the dominator
|
||||||
/// tree information when a node's immediate dominator changes.
|
/// tree information when a node's immediate dominator changes.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user