From 99014ff206fe688e2ad774a729d913144239c74b Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Sat, 10 Mar 2012 00:44:11 +0000 Subject: [PATCH] Report the defining instruction. llvm-svn: 152460 --- llvm/lib/CodeGen/MachineVerifier.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 91a536d0631f..830a87632726 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -1020,10 +1020,9 @@ void MachineVerifier::visitMachineFunctionAfter() { BBInfo &MInfo = MBBInfoMap[&MF->front()]; for (RegSet::iterator I = MInfo.vregsRequired.begin(), E = MInfo.vregsRequired.end(); I != E; - ++I) { - report("Virtual register def doesn't dominate all uses.", MF); - *OS << "- register:\t" << PrintReg(*I) << '\n'; - } + ++I) + report("Virtual register def doesn't dominate all uses.", + MRI->getVRegDef(*I)); } if (LiveVars)