Fix test to handle running on platforms which don't enable pubnames at all

Check that there are no entries in the pub sections, but that they may
either be not present or present-but-empty.

llvm-svn: 303927
This commit is contained in:
David Blaikie 2017-05-25 22:10:51 +00:00
parent 2f106b4690
commit 9f8669461d
1 changed files with 4 additions and 6 deletions

View File

@ -13,14 +13,12 @@
; CHECK-NOT: file_names[
; CHECK: .debug_pubnames contents:
; CHECK-NEXT: length = 0x0000000e
; CHECK-NEXT: Offset
; CHECK-NEXT: {{^$}}
; CHECK-NOT: {{^}}0x
; CHECK: .debug_pubtypes contents:
; CHECK-NEXT: length = 0x0000000e
; CHECK-NEXT: Offset
; CHECK-NEXT: {{^$}}
; CHECK-NOT: {{^}}0x
; CHECK: contents:
; Don't emit DW_AT_addr_base when there are no addresses.
; FISSION-NOT: DW_AT_GNU_addr_base [DW_FORM_sec_offset]