aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-22 17:52:59 +0000
committerDan Gohman <gohman@apple.com>2008-07-22 17:52:59 +0000
commit7951f804442942b1befc8c583e442854d4040723 (patch)
treebd5a4da782dd504116c21f04dd5485247f8d10e3
parentd1f2de75c824b93334f005cb9c0de951c81b6334 (diff)
downloadexternal_llvm-7951f804442942b1befc8c583e442854d4040723.zip
external_llvm-7951f804442942b1befc8c583e442854d4040723.tar.gz
external_llvm-7951f804442942b1befc8c583e442854d4040723.tar.bz2
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
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 184c50e..4bcd916 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -110,7 +110,8 @@ namespace llvm {
GraphWriter<SelectionDAG*> &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");
}
};
}