MachineVerifier: print list of live intervals if available

llvm-svn: 252549
This commit is contained in:
Matthias Braun 2015-11-09 23:59:23 +00:00
parent b750417f1d
commit 42b4b63056
1 changed files with 4 additions and 1 deletions

View File

@ -397,7 +397,10 @@ void MachineVerifier::report(const char *msg, const MachineFunction *MF) {
if (!foundErrors++) {
if (Banner)
errs() << "# " << Banner << '\n';
MF->print(errs(), Indexes);
if (LiveInts != nullptr)
LiveInts->print(errs());
else
MF->print(errs(), Indexes);
}
errs() << "*** Bad machine code: " << msg << " ***\n"
<< "- function: " << MF->getName() << "\n";