mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 17:39:04 +00:00
Apparently some MachineBasicBlock's don't have corresponding llvm basic blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce7f5a1e50
commit
f412f7c417
@ -83,9 +83,13 @@ std::string DOTGraphTraits<ScheduleDAG*>::getNodeLabel(const SUnit *SU,
|
||||
void ScheduleDAG::viewGraph() {
|
||||
// This code is only for debugging!
|
||||
#ifndef NDEBUG
|
||||
ViewGraph(this, "dag." + MF.getFunction()->getName(),
|
||||
"Scheduling-Units Graph for " + MF.getFunction()->getName() + ':' +
|
||||
BB->getBasicBlock()->getName());
|
||||
if (BB->getBasicBlock())
|
||||
ViewGraph(this, "dag." + MF.getFunction()->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
|
||||
cerr << "ScheduleDAG::viewGraph is only available in debug builds on "
|
||||
<< "systems with Graphviz or gv!\n";
|
||||
|
Loading…
Reference in New Issue
Block a user