DebugInfo: Use DW_FORM_data4 for DW_AT_high_pc in inlined functions

Suggested by Adrian Prantl in code review for r203187.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203296 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2014-03-07 22:00:56 +00:00
parent 0afacf185d
commit 9623e46f00
2 changed files with 4 additions and 4 deletions

View File

@ -542,8 +542,7 @@ DIE *DwarfDebug::constructInlinedScopeDIE(DwarfCompileUnit *TheCU,
"Invalid starting label for an inlined scope!"); "Invalid starting label for an inlined scope!");
assert(EndLabel->isDefined() && "Invalid end label for an inlined scope!"); assert(EndLabel->isDefined() && "Invalid end label for an inlined scope!");
TheCU->addLabelAddress(ScopeDIE, dwarf::DW_AT_low_pc, StartLabel); attachLowHighPC(TheCU, ScopeDIE, StartLabel, EndLabel);
TheCU->addLabelAddress(ScopeDIE, dwarf::DW_AT_high_pc, EndLabel);
} }
InlinedSubprogramDIEs.insert(OriginDIE); InlinedSubprogramDIEs.insert(OriginDIE);

View File

@ -7,8 +7,9 @@
;CHECK: DW_TAG_inlined_subroutine ;CHECK: DW_TAG_inlined_subroutine
;CHECK-NEXT: DW_AT_abstract_origin ;CHECK-NEXT: DW_AT_abstract_origin
;CHECK-NEXT: DW_AT_low_pc ;CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr]
;CHECK-NEXT: DW_AT_high_pc ;DARWIN-NEXT: DW_AT_high_pc [DW_FORM_addr]
;LINUX-NEXT: DW_AT_high_pc [DW_FORM_data4]
;CHECK-NEXT: DW_AT_call_file ;CHECK-NEXT: DW_AT_call_file
;CHECK-NEXT: DW_AT_call_line ;CHECK-NEXT: DW_AT_call_line