MachineVerifier: print list of live intervals if available
authorMatthias Braun <matze@braunis.de>
Mon, 9 Nov 2015 23:59:23 +0000 (23:59 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 9 Nov 2015 23:59:23 +0000 (23:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252549 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineVerifier.cpp

index 50f7e69cf692db1f128f525ce7f441fe2d595df8..e291ea52aa4d14411484bb2850deb1db6a564481 100644 (file)
@@ -397,7 +397,10 @@ void MachineVerifier::report(const char *msg, const MachineFunction *MF) {
   if (!foundErrors++) {
     if (Banner)
       errs() << "# " << Banner << '\n';
   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";
   }
   errs() << "*** Bad machine code: " << msg << " ***\n"
       << "- function:    " << MF->getName() << "\n";