forked from OSchip/llvm-project
Apparently some MachineBasicBlock's don't have corresponding llvm basic blocks.
llvm-svn: 64340
This commit is contained in:
parent
eb5ec4a0db
commit
6f6abfd94b
|
@ -83,9 +83,13 @@ std::string DOTGraphTraits<ScheduleDAG*>::getNodeLabel(const SUnit *SU,
|
||||||
void ScheduleDAG::viewGraph() {
|
void ScheduleDAG::viewGraph() {
|
||||||
// This code is only for debugging!
|
// This code is only for debugging!
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
ViewGraph(this, "dag." + MF.getFunction()->getName(),
|
if (BB->getBasicBlock())
|
||||||
"Scheduling-Units Graph for " + MF.getFunction()->getName() + ':' +
|
ViewGraph(this, "dag." + MF.getFunction()->getName(),
|
||||||
BB->getBasicBlock()->getName());
|
"Scheduling-Units Graph for " + MF.getFunction()->getName() + ':' +
|
||||||
|
BB->getBasicBlock()->getName());
|
||||||
|
else
|
||||||
|
ViewGraph(this, "dag." + MF.getFunction()->getName(),
|
||||||
|
"Scheduling-Units Graph for " + MF.getFunction()->getName());
|
||||||
#else
|
#else
|
||||||
cerr << "ScheduleDAG::viewGraph is only available in debug builds on "
|
cerr << "ScheduleDAG::viewGraph is only available in debug builds on "
|
||||||
<< "systems with Graphviz or gv!\n";
|
<< "systems with Graphviz or gv!\n";
|
||||||
|
|
Loading…
Reference in New Issue