summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-01-14 00:15:12 +0000
committerAdrian Prantl <aprantl@apple.com>2015-01-14 00:15:12 +0000
commit1411577ad9470eb282c998bc6ca3f85818f0ab91 (patch)
treea75782319ce8036313114bfbbb42b145be770d96 /llvm/lib/CodeGen/AsmPrinter
parentf142580dea1b62126ee16609e502a2a0bd7242f2 (diff)
downloadbcm5719-llvm-1411577ad9470eb282c998bc6ca3f85818f0ab91.tar.gz
bcm5719-llvm-1411577ad9470eb282c998bc6ca3f85818f0ab91.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
index 26c2a20dea1..4c16ae70d1f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
@@ -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.
OpenPOWER on IntegriCloud