mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Use location entry only of the location described by DBG_VALUE is valid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
009944e774
commit
5573a7da29
@ -2315,7 +2315,9 @@ DwarfDebug::collectVariableInfo(const MachineFunction *MF,
|
||||
|
||||
const MCSymbol *FLabel = getLabelBeforeInsn(Begin);
|
||||
const MCSymbol *SLabel = getLabelBeforeInsn(End);
|
||||
if (MLoc.getReg())
|
||||
DotDebugLocEntries.push_back(DotDebugLocEntry(FLabel, SLabel, MLoc));
|
||||
|
||||
Begin = End;
|
||||
if (MVI + 1 == MVE) {
|
||||
// If End is the last instruction then its value is valid
|
||||
@ -2326,6 +2328,7 @@ DwarfDebug::collectVariableInfo(const MachineFunction *MF,
|
||||
EMLoc.set(Begin->getOperand(0).getReg(), Begin->getOperand(1).getImm());
|
||||
} else
|
||||
EMLoc = Asm->getDebugValueLocation(End);
|
||||
if (EMLoc.getReg())
|
||||
DotDebugLocEntries.
|
||||
push_back(DotDebugLocEntry(SLabel, FunctionEndSym, EMLoc));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user