diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-31 19:41:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-31 19:41:03 +0000 |
commit | 529f248eb4a107946e7fa1013370f514c7d7dcea (patch) | |
tree | c81f2579ee367f979c9a1ca95203c85dcc5fcc4a /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 11c23fc34986c800f453824720fe4855729f8f05 (diff) | |
download | bcm5719-llvm-529f248eb4a107946e7fa1013370f514c7d7dcea.tar.gz bcm5719-llvm-529f248eb4a107946e7fa1013370f514c7d7dcea.zip |
Revert r112623. It is causing self host build failures.
llvm-svn: 112631
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index eeae8a33f42..eaa12d4e0c0 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1629,16 +1629,9 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, DbgScope *Scope) { bool updated = false; // FIXME : Handle getNumOperands != 3 if (DVInsn->getNumOperands() == 3) { - if (DVInsn->getOperand(0).isReg()) { - const MachineOperand RegOp = DVInsn->getOperand(0); - const TargetRegisterInfo *TRI = Asm->TM.getRegisterInfo(); - if (DVInsn->getOperand(1).isImm() && - TRI->getFrameRegister(*Asm->MF) == RegOp.getReg()) { - addVariableAddress(DV, VariableDie, DVInsn->getOperand(1).getImm()); - updated = true; - } else - updated = addRegisterAddress(VariableDie, DVLabel, RegOp); - } + if (DVInsn->getOperand(0).isReg()) + updated = + addRegisterAddress(VariableDie, DVLabel, DVInsn->getOperand(0)); else if (DVInsn->getOperand(0).isImm()) updated = addConstantValue(VariableDie, DVLabel, DVInsn->getOperand(0)); else if (DVInsn->getOperand(0).isFPImm()) |