[llvm] r252549 - MachineVerifier: print list of live intervals if available
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 15:59:23 PST 2015
Author: matze
Date: Mon Nov 9 17:59:23 2015
New Revision: 252549
URL: http://llvm.org/viewvc/llvm-project?rev=252549&view=rev
Log:
MachineVerifier: print list of live intervals if available
Modified:
llvm/trunk/lib/CodeGen/MachineVerifier.cpp
Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=252549&r1=252548&r2=252549&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Mon Nov 9 17:59:23 2015
@@ -397,7 +397,10 @@ void MachineVerifier::report(const char
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";
More information about the llvm-commits
mailing list