From: Dan Gohman Date: Tue, 22 Jul 2008 17:52:59 +0000 (+0000) Subject: Make the GraphRoot edge look like a chain edge, which is more accurate, X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=694caf56f15bec971d493069a1613a8f992f510a;p=oota-llvm.git Make the GraphRoot edge look like a chain edge, which is more accurate, and use the right result number, in the off chance that the graph root has multiple result values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53923 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 184c50e9037..4bcd916ff84 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -110,7 +110,8 @@ namespace llvm { GraphWriter &GW) { GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot"); if (G->getRoot().Val) - GW.emitEdge(0, -1, G->getRoot().Val, -1, ""); + GW.emitEdge(0, -1, G->getRoot().Val, G->getRoot().ResNo, + "color=blue,style=dashed"); } }; }