mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
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:
@@ -2195,6 +2195,9 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
|
|||||||
if (!DV.Verify()) return;
|
if (!DV.Verify()) return;
|
||||||
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
|
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
|
||||||
LocalVar = true;
|
LocalVar = true;
|
||||||
|
// Ignore Undef values.
|
||||||
|
if (MI->getOperand(0).isReg() && !MI->getOperand(0).getReg())
|
||||||
|
LocalVar = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
MCSymbol *Label = NULL;
|
MCSymbol *Label = NULL;
|
||||||
|
Reference in New Issue
Block a user