mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Omit dwarf::DW_AT_frame_base under -gmlt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a66ce7afdd
commit
0f155c19a5
@ -319,9 +319,12 @@ DIE &DwarfDebug::updateSubprogramScopeDIE(DwarfCompileUnit &SPCU,
|
|||||||
|
|
||||||
attachLowHighPC(SPCU, *SPDie, FunctionBeginSym, FunctionEndSym);
|
attachLowHighPC(SPCU, *SPDie, FunctionBeginSym, FunctionEndSym);
|
||||||
|
|
||||||
const TargetRegisterInfo *RI = Asm->TM.getSubtargetImpl()->getRegisterInfo();
|
if (SPCU.getCUNode().getEmissionKind() != DIBuilder::LineTablesOnly) {
|
||||||
|
const TargetRegisterInfo *RI =
|
||||||
|
Asm->TM.getSubtargetImpl()->getRegisterInfo();
|
||||||
MachineLocation Location(RI->getFrameRegister(*Asm->MF));
|
MachineLocation Location(RI->getFrameRegister(*Asm->MF));
|
||||||
SPCU.addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
|
SPCU.addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
|
||||||
|
}
|
||||||
|
|
||||||
// Add name to the name table, we do this here because we're guaranteed
|
// Add name to the name table, we do this here because we're guaranteed
|
||||||
// to have concrete versions of our DW_TAG_subprogram nodes.
|
// to have concrete versions of our DW_TAG_subprogram nodes.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user