1
0
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:
Andrew Lenharth 2009-08-05 15:04:22 +00:00
parent 27fdf43425
commit dd4ec41e89

View File

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