aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-21 22:51:06 +0000
committerDan Gohman <gohman@apple.com>2008-03-21 22:51:06 +0000
commitd0627015cec0b75f7044b7aef28f6e802e0f4648 (patch)
tree209921b5b4edf21722791cc7648c33f241a94ac1 /lib
parentb89b6a38f73206ab4694082e7e810ee2f8fe849f (diff)
downloadexternal_llvm-d0627015cec0b75f7044b7aef28f6e802e0f4648.zip
external_llvm-d0627015cec0b75f7044b7aef28f6e802e0f4648.tar.gz
external_llvm-d0627015cec0b75f7044b7aef28f6e802e0f4648.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp5
1 files changed, 4 insertions, 1 deletions
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 @@ std::string DOTGraphTraits<ScheduleDAG*>::getNodeLabel(const SUnit *SU,
&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;
}