From 57c749294c5d79b0cfaa4cafc4f339eed5e93060 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 22 Jul 2008 17:52:59 +0000 Subject: [PATCH] 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. llvm-svn: 53923 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 184c50e9037d..4bcd916ff845 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/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"); } }; }