Do not emit line number entries for unknown debug values.

This fixes recent regression in store.exp from gdb testsuite.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104524 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2010-05-24 18:26:49 +00:00
parent c7cf10c97e
commit 295cdf8b82

View File

@ -2195,6 +2195,9 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
if (!DV.Verify()) return;
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
LocalVar = true;
// Ignore Undef values.
if (MI->getOperand(0).isReg() && !MI->getOperand(0).getReg())
LocalVar = false;
}
MCSymbol *Label = NULL;