Mark function edges
authorChris Lattner <sabre@nondot.org>
Fri, 14 Feb 2003 20:25:47 +0000 (20:25 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Feb 2003 20:25:47 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5571 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/Printer.cpp

index 7af646757b931beb8b86ea1ea0ff43000f2f7002..7f0bf5a5120d6ae859a5b4d7660eead83813d9c1 100644 (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);