commit | 4145bd509d0be0ea2ebea693a7ad15948480d982 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Fri Mar 21 22:51:06 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Fri Mar 21 22:51:06 2008 +0000 |
tree | 209921b5b4edf21722791cc7648c33f241a94ac1 | |
parent | 8e0c20bf1b7f507621d765cc7d795362fda639ff [diff] [blame] |
Fix -view-sunit-dags to support cross-rc-copy nodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48664 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index ad58aa0..7779acc 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -314,7 +314,10 @@ &G->DAG) + "\n"; } - Op += DOTGraphTraits<SelectionDAG*>::getNodeLabel(SU->Node, &G->DAG); + if (SU->Node) + Op += DOTGraphTraits<SelectionDAG*>::getNodeLabel(SU->Node, &G->DAG); + else + Op += "<CROSS RC COPY>"; return Op; }