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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2017-05-25 22:10:51 +00:00
parent 32c2620ed2
commit e55679d86d

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]