summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-09-03 06:57:49 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-09-03 06:57:49 +0000
commitf3d1a1a1b6b57e6030f0719c358fa08f25558013 (patch)
tree49b469f2f7bed584b98f1a115714387b94f25af6 /llvm
parent892ce56901c54bd3f62c8dd9e1dd7e0992bed90a (diff)
downloadbcm5719-llvm-f3d1a1a1b6b57e6030f0719c358fa08f25558013.tar.gz
bcm5719-llvm-f3d1a1a1b6b57e6030f0719c358fa08f25558013.zip
Improve debug error message with register name
llvm-svn: 280583
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/LiveRangeCalc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeCalc.cpp b/llvm/lib/CodeGen/LiveRangeCalc.cpp
index 98022d99cf2..281cf1fb5a8 100644
--- a/llvm/lib/CodeGen/LiveRangeCalc.cpp
+++ b/llvm/lib/CodeGen/LiveRangeCalc.cpp
@@ -374,7 +374,8 @@ bool LiveRangeCalc::findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB,
if (TargetRegisterInfo::isPhysicalRegister(PhysReg) &&
!MBB->isLiveIn(PhysReg)) {
MBB->getParent()->verify();
- errs() << "The register " << PrintReg(PhysReg)
+ const TargetRegisterInfo *TRI = MRI->getTargetRegisterInfo();
+ errs() << "The register " << PrintReg(PhysReg, TRI)
<< " needs to be live in to BB#" << MBB->getNumber()
<< ", but is missing from the live-in list.\n";
llvm_unreachable("Invalid global physical register");
OpenPOWER on IntegriCloud