llvm.org GIT mirror llvm / 0f155c1
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 David Blaikie 6 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
318318
319319 attachLowHighPC(SPCU, *SPDie, FunctionBeginSym, FunctionEndSym);
320320
321 const TargetRegisterInfo *RI = Asm->TM.getSubtargetImpl()->getRegisterInfo();
322 MachineLocation Location(RI->getFrameRegister(*Asm->MF));
323 SPCU.addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
321 if (SPCU.getCUNode().getEmissionKind() != DIBuilder::LineTablesOnly) {
322 const TargetRegisterInfo *RI =
323 Asm->TM.getSubtargetImpl()->getRegisterInfo();
324 MachineLocation Location(RI->getFrameRegister(*Asm->MF));
325 SPCU.addAddress(*SPDie, dwarf::DW_AT_frame_base, Location);
326 }
324327
325328 // Add name to the name table, we do this here because we're guaranteed
326329 // to have concrete versions of our DW_TAG_subprogram nodes.