summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit30e44a4b403f442396f33f6af0fcc3b39526f9a8 (patch)
tree11919873cfb94e9d7e5b682add271fda0f597576 /llvm/lib/CodeGen
parenta6c5b38c4a69cd92f89b3ed775fce0cd534d6120 (diff)
downloadbcm5719-llvm-30e44a4b403f442396f33f6af0fcc3b39526f9a8.tar.gz
bcm5719-llvm-30e44a4b403f442396f33f6af0fcc3b39526f9a8.zip
Fix -view-sunit-dags to support cross-rc-copy nodes.
llvm-svn: 48664
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index ad58aa06165..7779acce634 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud