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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90132 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tobias Grosser 2009-11-30 12:37:39 +00:00
parent c500566d9f
commit ce4edd647b

View File

@ -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 << "]";