[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 11 22:59:08 PST 2003
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.59 -> 1.60
---
Log message:
Print return nodes for graphs with multiple functions in them correctly
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.59 llvm/lib/Analysis/DataStructure/Printer.cpp:1.60
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.59 Tue Nov 11 16:41:32 2003
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Tue Nov 11 22:58:19 2003
@@ -132,12 +132,12 @@
else
Label = I->first->getName() + " ret node";
// Output the return node...
- GW.emitSimpleNode((void*)1, "plaintext=circle", Label);
+ GW.emitSimpleNode((void*)I->first, "plaintext=circle", Label);
// Add edge from return node to real destination
int RetEdgeDest = I->second.getOffset() >> DS::PointerShift;;
if (RetEdgeDest == 0) RetEdgeDest = -1;
- GW.emitEdge((void*)1, -1, I->second.getNode(),
+ GW.emitEdge((void*)I->first, -1, I->second.getNode(),
RetEdgeDest, "arrowtail=tee,color=gray63");
}
More information about the llvm-commits
mailing list