mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
c500566d9f
commit
ce4edd647b
@ -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 << "]";
|
||||
|
Loading…
Reference in New Issue
Block a user