mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
Do not drop a variable's complex address if it is not based on frame base.
Observed this while reading code, so I do not have a test case handy here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
308bec390f
commit
80925f5dca
@ -709,7 +709,11 @@ DIE *DwarfDebug::constructVariableDIE(DbgVariable *DV, DbgScope *Scope) {
|
||||
} else {
|
||||
MachineLocation Location = Asm->getDebugValueLocation(DVInsn);
|
||||
if (Location.getReg()) {
|
||||
TheCU->addAddress(VariableDie, dwarf::DW_AT_location, Location);
|
||||
if (DV->getVariable().hasComplexAddress())
|
||||
TheCU->addComplexAddress(DV, VariableDie, dwarf::DW_AT_location,
|
||||
Location);
|
||||
else
|
||||
TheCU->addAddress(VariableDie, dwarf::DW_AT_location, Location);
|
||||
updated = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user