[llvm-commits] [llvm] r90132 - /llvm/trunk/include/llvm/Support/GraphWriter.h
Tobias Grosser
grosser at fim.uni-passau.de
Mon Nov 30 04:37:40 PST 2009
Author: grosser
Date: Mon Nov 30 06:37:39 2009
New Revision: 90132
URL: http://llvm.org/viewvc/llvm-project?rev=90132&view=rev
Log:
Do not point edge heads to source labels
If no destination label is available, just point to the node itself
instead of pointing to some source label. Source and destination labels are
not related in any way.
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=90132&r1=90131&r2=90132&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GraphWriter.h (original)
+++ llvm/trunk/include/llvm/Support/GraphWriter.h Mon Nov 30 06:37:39 2009
@@ -247,12 +247,8 @@
if (SrcNodePort >= 0)
O << ":s" << SrcNodePort;
O << " -> Node" << DestNodeID;
- if (DestNodePort >= 0) {
- if (DOTTraits::hasEdgeDestLabels())
- O << ":d" << DestNodePort;
- else
- O << ":s" << DestNodePort;
- }
+ if (DestNodePort >= 0 && DOTTraits::hasEdgeDestLabels())
+ O << ":d" << DestNodePort;
if (!Attrs.empty())
O << "[" << Attrs << "]";
More information about the llvm-commits
mailing list