llvm.org GIT mirror llvm / bb7e1f3
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 Adrian Prantl 5 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
294294 const TargetRegisterInfo *RI =
295295 Asm->TM.getSubtargetImpl()->getRegisterInfo();
296296 MachineLocation Location(RI->getFrameRegister(*Asm->MF));
297 addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
297 if (RI->isPhysicalRegister(Location.getReg()))
298 addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
298299 }
300301 // Add name to the name table, we do this here because we're guaranteed