[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 21 08:49:01 PDT 2002
Changes in directory llvm/lib/Analysis/DataStructure:
Printer.cpp updated: 1.26 -> 1.27
---
Log message:
Fix a confusing bug that caused return value and callee pointers to not
be printed!
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/Printer.cpp
diff -u llvm/lib/Analysis/DataStructure/Printer.cpp:1.26 llvm/lib/Analysis/DataStructure/Printer.cpp:1.27
--- llvm/lib/Analysis/DataStructure/Printer.cpp:1.26 Sun Oct 20 21:08:03 2002
+++ llvm/lib/Analysis/DataStructure/Printer.cpp Mon Oct 21 08:47:57 2002
@@ -112,6 +112,16 @@
const DSCallSite &Call = FCs[i];
GW.emitSimpleNode(&Call, "shape=record", "call", Call.getNumPtrArgs()+2);
+ if (DSNode *N = Call.getRetVal().getNode()) {
+ int EdgeDest = Call.getRetVal().getOffset();
+ if (EdgeDest == 0) EdgeDest = -1;
+ GW.emitEdge(&Call, 0, N, EdgeDest, "color=gray63");
+ }
+ if (DSNode *N = Call.getCallee().getNode()) {
+ int EdgeDest = Call.getCallee().getOffset();
+ if (EdgeDest == 0) EdgeDest = -1;
+ GW.emitEdge(&Call, 1, N, EdgeDest, "color=gray63");
+ }
for (unsigned j = 0, e = Call.getNumPtrArgs(); j != e; ++j)
if (DSNode *N = Call.getPtrArg(j).getNode()) {
int EdgeDest = Call.getPtrArg(j).getOffset();
More information about the llvm-commits
mailing list