[llvm-commits] CVS: llvm/lib/VMCore/Dominators.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Sep 11 11:27:19 PDT 2003
Changes in directory llvm/lib/VMCore:
Dominators.cpp updated: 1.47 -> 1.48
---
Log message:
Renamed DominatorTree::Node::getNode() -> getBlock()
---
Diffs of the changes:
Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.47 llvm/lib/VMCore/Dominators.cpp:1.48
--- llvm/lib/VMCore/Dominators.cpp:1.47 Wed Sep 10 15:37:51 2003
+++ llvm/lib/VMCore/Dominators.cpp Thu Sep 11 11:26:13 2003
@@ -211,7 +211,7 @@
RootNode = 0;
}
-void DominatorTreeBase::Node2::setIDom(Node2 *NewIDom) {
+void DominatorTreeBase::Node::setIDom(Node *NewIDom) {
assert(IDom && "No immediate dominator?");
if (IDom != NewIDom) {
std::vector<Node*>::iterator I =
@@ -279,8 +279,8 @@
static std::ostream &operator<<(std::ostream &o,
const DominatorTreeBase::Node *Node) {
- if (Node->getNode())
- WriteAsOperand(o, Node->getNode(), false);
+ if (Node->getBlock())
+ WriteAsOperand(o, Node->getBlock(), false);
else
o << " <<exit node>>";
return o << "\n";
@@ -312,7 +312,7 @@
DominanceFrontier::calculate(const DominatorTree &DT,
const DominatorTree::Node *Node) {
// Loop over CFG successors to calculate DFlocal[Node]
- BasicBlock *BB = Node->getNode();
+ BasicBlock *BB = Node->getBlock();
DomSetType &S = Frontiers[BB]; // The new set to fill in...
for (succ_iterator SI = succ_begin(BB), SE = succ_end(BB);
More information about the llvm-commits
mailing list