From e73452b42d8fb4c2c6b58818a7ba714ddf48e810 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 12 Nov 2003 04:58:19 +0000 Subject: [PATCH] Print return nodes for graphs with multiple functions in them correctly llvm-svn: 9914 --- lib/Analysis/DataStructure/Printer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Analysis/DataStructure/Printer.cpp b/lib/Analysis/DataStructure/Printer.cpp index 9902906e19a..d6f6c02cc21 100644 --- a/lib/Analysis/DataStructure/Printer.cpp +++ b/lib/Analysis/DataStructure/Printer.cpp @@ -132,12 +132,12 @@ struct DOTGraphTraits : public DefaultDOTGraphTraits { 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"); }