Mark function edges

llvm-svn: 5571
This commit is contained in:
Chris Lattner 2003-02-14 20:25:47 +00:00
parent 04c9274e50
commit b5cbfa0f15
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits {
EdgeSourceCaptions[0] = "r";
if (Call.isDirectCall())
EdgeSourceCaptions[1] = Call.getCalleeFunc()->getName();
else
EdgeSourceCaptions[1] = "f";
GW.emitSimpleNode(&Call, "shape=record", "call", Call.getNumPtrArgs()+2,
&EdgeSourceCaptions);