forked from OSchip/llvm-project
MachineVerifier: print list of live intervals if available
llvm-svn: 252549
This commit is contained in:
parent
b750417f1d
commit
42b4b63056
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue