mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Set DW_AT_APPLE_omit_frame_ptr in endFunction() where MachineFunction is available all the time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1334,9 +1334,6 @@ DIE *DwarfDebug::createSubprogramDIE(const DISubprogram &SP, bool MakeDecl) {
|
||||
if (SP.isOptimized())
|
||||
addUInt(SPDie, dwarf::DW_AT_APPLE_optimized, dwarf::DW_FORM_flag, 1);
|
||||
|
||||
if (!DisableFramePointerElim(*Asm->MF))
|
||||
addUInt(SPDie, dwarf::DW_AT_APPLE_omit_frame_ptr, dwarf::DW_FORM_flag, 1);
|
||||
|
||||
// DW_TAG_inlined_subroutine may refer to this DIE.
|
||||
ModuleCU->insertDIE(SP.getNode(), SPDie);
|
||||
|
||||
@ -2533,8 +2530,13 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
|
||||
AE = AbstractScopesList.end(); AI != AE; ++AI)
|
||||
constructScopeDIE(*AI);
|
||||
|
||||
constructScopeDIE(CurrentFnDbgScope);
|
||||
DIE *CurFnDIE = constructScopeDIE(CurrentFnDbgScope);
|
||||
|
||||
if (!DisableFramePointerElim(*MF))
|
||||
addUInt(CurFnDIE, dwarf::DW_AT_APPLE_omit_frame_ptr,
|
||||
dwarf::DW_FORM_flag, 1);
|
||||
|
||||
|
||||
DebugFrames.push_back(FunctionDebugFrameInfo(Asm->getFunctionNumber(),
|
||||
MMI->getFrameMoves()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user