llvm.org GIT mirror llvm / 4e5d08a
Revert "Debug Info: Bail out of AddMachineRegPiece() if MachineReg is not a" This reverts commit r225852, it was a bad idea. MachineReg should always be a physical register. If it isn't this DebugLoc shouldn't have been created in the first place. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225857 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 5 years ago
1 changed file(s) with 0 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
9292 unsigned PieceSizeInBits,
9393 unsigned PieceOffsetInBits) {
9494 const TargetRegisterInfo *TRI = getTRI();
95 if (!TRI->isPhysicalRegister(MachineReg)) {
96 // FIXME: We have no reasonable way of handling errors in here.
97 EmitOp(dwarf::DW_OP_nop, "nop (could not find a dwarf register number)");
98 return;
99 }
10195 int Reg = TRI->getDwarfRegNum(MachineReg, false);
10397 // If this is a valid register number, emit it.