mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
Print return nodes for graphs with multiple functions in them correctly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9dc4185763
commit
d8ea8a5027
@ -132,12 +132,12 @@ struct DOTGraphTraits<const DSGraph*> : 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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user