From: David Blaikie Date: Thu, 25 May 2017 22:10:51 +0000 (+0000) Subject: Fix test to handle running on platforms which don't enable pubnames at all X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e55679d86d978194e18f90d5dd68ee2668295d8d;p=llvm 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 --- diff --git a/test/DebugInfo/Generic/empty.ll b/test/DebugInfo/Generic/empty.ll index f8bc2c0f280..4c23300e3ed 100644 --- a/test/DebugInfo/Generic/empty.ll +++ b/test/DebugInfo/Generic/empty.ll @@ -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]