mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
only point to dest labels if the graph has them
llvm-svn: 78192
This commit is contained in:
parent
27fdf43425
commit
dd4ec41e89
@ -252,8 +252,12 @@ public:
|
||||
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 << "]";
|
||||
|
Loading…
Reference in New Issue
Block a user