1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Print return nodes for graphs with multiple functions in them correctly

llvm-svn: 9914
This commit is contained in:
Chris Lattner 2003-11-12 04:58:19 +00:00
parent 87ad20251a
commit e73452b42d

View File

@ -132,12 +132,12 @@ struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits {
else else
Label = I->first->getName() + " ret node"; Label = I->first->getName() + " ret node";
// Output the return 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 // Add edge from return node to real destination
int RetEdgeDest = I->second.getOffset() >> DS::PointerShift;; int RetEdgeDest = I->second.getOffset() >> DS::PointerShift;;
if (RetEdgeDest == 0) RetEdgeDest = -1; 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"); RetEdgeDest, "arrowtail=tee,color=gray63");
} }