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.

llvm-svn: 225857
This commit is contained in:
Adrian Prantl 2015-01-14 00:15:12 +00:00
parent f142580dea
commit 1411577ad9
1 changed files with 0 additions and 6 deletions

View File

@ -93,12 +93,6 @@ void DwarfExpression::AddMachineRegPiece(unsigned MachineReg,
unsigned PieceSizeInBits,
unsigned PieceOffsetInBits) {
const TargetRegisterInfo *TRI = getTRI();
if (!TRI->isPhysicalRegister(MachineReg)) {
// FIXME: We have no reasonable way of handling errors in here.
EmitOp(dwarf::DW_OP_nop, "nop (could not find a dwarf register number)");
return;
}
int Reg = TRI->getDwarfRegNum(MachineReg, false);
// If this is a valid register number, emit it.