mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
DwarfDebug: Avoid emitting an empty debug_aranges section when aranges are disabled
llvm-svn: 202201
This commit is contained in:
parent
e6ef3933bb
commit
164f6a50be
@ -1941,7 +1941,8 @@ void DwarfDebug::emitSectionLabels() {
|
||||
if (useSplitDwarf())
|
||||
DwarfAbbrevDWOSectionSym = emitSectionSym(
|
||||
Asm, TLOF.getDwarfAbbrevDWOSection(), "section_abbrev_dwo");
|
||||
emitSectionSym(Asm, TLOF.getDwarfARangesSection());
|
||||
if (GenerateARangeSection)
|
||||
emitSectionSym(Asm, TLOF.getDwarfARangesSection());
|
||||
|
||||
DwarfLineSectionSym =
|
||||
emitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llc -split-dwarf=Enable -generate-cu-hash -O0 %s -mtriple=x86_64-unknown-linux-gnu -filetype=obj -o %t
|
||||
; RUN: llvm-dwarfdump -debug-dump=all %t | FileCheck %s
|
||||
; RUN: llvm-readobj --relocations %t | FileCheck --check-prefix=OBJ %s
|
||||
; RUN: llvm-objdump -h %t | FileCheck --check-prefix=HDR %s
|
||||
|
||||
@a = common global i32 0, align 4
|
||||
|
||||
@ -111,4 +112,6 @@
|
||||
; OBJ-NEXT: R_X86_64_32 .debug_str
|
||||
; OBJ-NEXT: }
|
||||
|
||||
; HDR-NOT: .debug_aranges
|
||||
|
||||
!9 = metadata !{i32 1, metadata !"Debug Info Version", i32 1}
|
||||
|
Loading…
Reference in New Issue
Block a user