[llvm] r345553 - Pass TRI to printReg

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 29 18:11:31 PDT 2018


Author: arsenm
Date: Mon Oct 29 18:11:31 2018
New Revision: 345553

URL: http://llvm.org/viewvc/llvm-project?rev=345553&view=rev
Log:
Pass TRI to printReg

Modified:
    llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp

Modified: llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp?rev=345553&r1=345552&r2=345553&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp Mon Oct 29 18:11:31 2018
@@ -364,7 +364,7 @@ bool LiveRangeCalc::findReachingDefs(Liv
 #ifndef NDEBUG
     if (MBB->pred_empty()) {
       MBB->getParent()->verify();
-      errs() << "Use of " << printReg(PhysReg)
+      errs() << "Use of " << printReg(PhysReg, MRI->getTargetRegisterInfo())
              << " does not have a corresponding definition on every path:\n";
       const MachineInstr *MI = Indexes->getInstructionFromIndex(Use);
       if (MI != nullptr)




More information about the llvm-commits mailing list