summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2009-11-30 12:37:39 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2009-11-30 12:37:39 +0000
commit8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b (patch)
tree4918d2e82b2969b1063a039c8f40d3f51308d623
parentf444599ef06daa3d1afdd8d216796e7d39f9d30a (diff)
downloadbcm5719-llvm-8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b.tar.gz
bcm5719-llvm-8d6f6b74b14c1ea620a0f59e6bdd488f5f60052b.zip
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. llvm-svn: 90132
-rw-r--r--llvm/include/llvm/Support/GraphWriter.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/include/llvm/Support/GraphWriter.h b/llvm/include/llvm/Support/GraphWriter.h
index 6d1b18eba6b..c89eb55c98f 100644
--- a/llvm/include/llvm/Support/GraphWriter.h
+++ b/llvm/include/llvm/Support/GraphWriter.h
@@ -247,12 +247,8 @@ public:
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 << "]";
OpenPOWER on IntegriCloud