From: Andrew Lenharth Date: Wed, 5 Aug 2009 15:04:22 +0000 (+0000) Subject: only point to dest labels if the graph has them X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ea2381eb7143e2ba3ad37de386cabd392b6609d8;p=oota-llvm.git only point to dest labels if the graph has them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78192 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/GraphWriter.h b/include/llvm/Support/GraphWriter.h index 26db5fd655f..0bb362f8673 100644 --- a/include/llvm/Support/GraphWriter.h +++ b/include/llvm/Support/GraphWriter.h @@ -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 << "]";