mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Do not require line number entry for undefined local variable.
This is a regression caused by r106792 and caught by gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107430 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b570968424
commit
7fb231cbec
@ -2690,10 +2690,12 @@ void DwarfDebug::beginFunction(const MachineFunction *MF) {
|
|||||||
DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata());
|
DIVariable DV(MI->getOperand(MI->getNumOperands() - 1).getMetadata());
|
||||||
if (!DV.Verify()) continue;
|
if (!DV.Verify()) continue;
|
||||||
// If DBG_VALUE is for a local variable then it needs a label.
|
// If DBG_VALUE is for a local variable then it needs a label.
|
||||||
if (DV.getTag() != dwarf::DW_TAG_arg_variable)
|
if (DV.getTag() != dwarf::DW_TAG_arg_variable
|
||||||
|
&& isDbgValueInUndefinedReg(MI) == false)
|
||||||
InsnNeedsLabel.insert(MI);
|
InsnNeedsLabel.insert(MI);
|
||||||
// DBG_VALUE for inlined functions argument needs a label.
|
// DBG_VALUE for inlined functions argument needs a label.
|
||||||
else if (!DISubprogram(DV.getContext()).describes(MF->getFunction()))
|
else if (!DISubprogram(getDISubprogram(DV.getContext())).
|
||||||
|
describes(MF->getFunction()))
|
||||||
InsnNeedsLabel.insert(MI);
|
InsnNeedsLabel.insert(MI);
|
||||||
// DBG_VALUE indicating argument location change needs a label.
|
// DBG_VALUE indicating argument location change needs a label.
|
||||||
else if (isDbgValueInUndefinedReg(MI) == false && !ProcessedArgs.insert(DV))
|
else if (isDbgValueInUndefinedReg(MI) == false && !ProcessedArgs.insert(DV))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user