[llvm] r303927 - Fix test to handle running on platforms which don't enable pubnames at all

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 15:10:51 PDT 2017


Author: dblaikie
Date: Thu May 25 17:10:51 2017
New Revision: 303927

URL: http://llvm.org/viewvc/llvm-project?rev=303927&view=rev
Log:
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.

Modified:
    llvm/trunk/test/DebugInfo/Generic/empty.ll

Modified: llvm/trunk/test/DebugInfo/Generic/empty.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/Generic/empty.ll?rev=303927&r1=303926&r2=303927&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/Generic/empty.ll (original)
+++ llvm/trunk/test/DebugInfo/Generic/empty.ll Thu May 25 17:10:51 2017
@@ -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]




More information about the llvm-commits mailing list