60 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-apple-darwin -o - \2# RUN: | not llvm-dwarfdump -verify - \3# RUN: | FileCheck %s4 5# CHECK: Verifying .apple_names...6# CHECK-NEXT: error: No atoms: failed to read HashData.7 8# This test is meant to verify that the -verify option9# in llvm-dwarfdump, correctly identifies that there is not Atom.10# As a result, the hashdata cannot be read.11 12 .section __TEXT,__text,regular,pure_instructions13 .file 1 "basic.c"14 .comm _i,4,2 ## @i15 .comm _j,4,2 ## @j16 .section __DWARF,__debug_str,regular,debug17Linfo_string:18 .asciz "Apple LLVM version 8.1.0 (clang-802.0.35)" ## string offset=019 .asciz "basic.c" ## string offset=4220 .asciz "/Users/sgravani/Development/tests" ## string offset=5021 .asciz "i" ## string offset=8422 .asciz "int" ## string offset=8623 .asciz "j" ## string offset=9024 25 .section __DWARF,__debug_info,regular,debug26Lsection_info:27 .section __DWARF,__apple_names,regular,debug28Lnames_begin:29 .long 1212240712 ## Header Magic30 .short 1 ## Header Version31 .short 0 ## Header Hash Function32 .long 2 ## Header Bucket Count33 .long 2 ## Header Hash Count34 .long 12 ## Header Data Length35 .long 0 ## HeaderData Die Offset Base36 .long 0 ## HeaderData Atom Count -- error: no atoms; failed to read HashData.37 .short 1 ## DW_ATOM_die_offset38 .short 6 ## DW_FORM_data439 .long 0 ## Bucket 040 .long 1 ## Bucket 141 .long 177678 ## Hash in Bucket 042 .long 177679 ## Hash in Bucket 143 .long LNames0-Lnames_begin ## Offset in Bucket 044 .long LNames1-Lnames_begin ## Offset in Bucket 145LNames0:46 .long 84 ## i47 .long 1 ## Num DIEs48 .long 3049 .long 050LNames1:51 .long 90 ## j52 .long 1 ## Num DIEs53 .long 5854 .long 055 56.subsections_via_symbols57 .section __DWARF,__debug_line,regular,debug58Lsection_line:59Lline_table_start0:60