Skip to content

Commit 543f890

Browse files
committed
fixup! use printReg.
1 parent dbb5365 commit 543f890

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
698698
Def->getParent()->insert(std::next(InsertPos), MI);
699699
} else
700700
LLVM_DEBUG(dbgs() << "Dropping debug info for dead vreg"
701-
<< Reg.virtRegIndex() << "\n");
701+
<< printReg(Reg) << '\n');
702702
}
703703

704704
// Don't try and extend through copies in instruction referencing mode.

llvm/lib/Target/PowerPC/PPCMIPeephole.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ void PPCMIPeephole::addRegToUpdateWithLine(Register Reg, int Line) {
190190
if (!Reg.isVirtual())
191191
return;
192192
if (RegsToUpdate.insert(Reg).second)
193-
LLVM_DEBUG(dbgs() << "Adding register: " << Reg.virtRegIndex()
194-
<< " on line " << Line
195-
<< " for re-computation of kill flags\n");
193+
LLVM_DEBUG(dbgs() << "Adding register: " << printReg(Reg) << " on line "
194+
<< Line << " for re-computation of kill flags\n");
196195
}
197196

198197
// Initialize class variables.

llvm/lib/Target/WebAssembly/WebAssemblyRegColoring.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ bool WebAssemblyRegColoring::runOnMachineFunction(MachineFunction &MF) {
311311
// If we reassigned the stack pointer, update the debug frame base info.
312312
if (Old != New && MFI.isFrameBaseVirtual() && MFI.getFrameBaseVreg() == Old)
313313
MFI.setFrameBaseVreg(New);
314-
LLVM_DEBUG(dbgs() << "Assigning vreg" << LI->reg().virtRegIndex()
315-
<< " to vreg" << New.virtRegIndex() << "\n");
314+
LLVM_DEBUG(dbgs() << "Assigning vreg " << printReg(LI->reg()) << " to vreg "
315+
<< printReg(New) << "\n");
316316
}
317317
if (!Changed)
318318
return false;

0 commit comments

Comments
 (0)