mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Debug Info: Don't bother emitting DW_AT_frame_base if the function has
no frame register. "Tested" via an assertion triggered by DwarfExpression. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e5d08aad0
commit
bb7e1f3687
@ -295,6 +295,7 @@ DIE &DwarfCompileUnit::updateSubprogramScopeDIE(DISubprogram SP) {
|
||||
const TargetRegisterInfo *RI =
|
||||
Asm->TM.getSubtargetImpl()->getRegisterInfo();
|
||||
MachineLocation Location(RI->getFrameRegister(*Asm->MF));
|
||||
if (RI->isPhysicalRegister(Location.getReg()))
|
||||
addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user