OSDN Git Service

Fix test to handle running on platforms which don't enable pubnames at all
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 25 May 2017 22:10:51 +0000 (22:10 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 25 May 2017 22:10:51 +0000 (22:10 +0000)
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

test/DebugInfo/Generic/empty.ll

index f8bc2c0..4c23300 100644 (file)
 ; 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]