[llvm-commits] [llvm] r78192 - /llvm/trunk/include/llvm/Support/GraphWriter.h

Andrew Lenharth alenhar2 at cs.uiuc.edu
Wed Aug 5 08:04:24 PDT 2009


Author: alenhar2
Date: Wed Aug  5 10:04:22 2009
New Revision: 78192

URL: http://llvm.org/viewvc/llvm-project?rev=78192&view=rev
Log:
only point to dest labels if the graph has them

Modified:
    llvm/trunk/include/llvm/Support/GraphWriter.h

Modified: llvm/trunk/include/llvm/Support/GraphWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/GraphWriter.h?rev=78192&r1=78191&r2=78192&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/GraphWriter.h (original)
+++ llvm/trunk/include/llvm/Support/GraphWriter.h Wed Aug  5 10:04:22 2009
@@ -252,8 +252,12 @@
     if (SrcNodePort >= 0)
       O << ":s" << SrcNodePort;
     O << " -> Node" << DestNodeID;
-    if (DestNodePort >= 0)
-      O << ":d" << DestNodePort;
+    if (DestNodePort >= 0) {
+      if (DOTTraits::hasEdgeDestLabels())
+	O << ":d" << DestNodePort;
+      else
+	O << ":s" << DestNodePort;
+    }
 
     if (!Attrs.empty())
       O << "[" << Attrs << "]";





More information about the llvm-commits mailing list