59 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: Unsupported form:7 8# This test is meant to verify that the -verify option9# in llvm-dwarfdump, correctly identifies that Atom[0].form is unsupported.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 .section __DWARF,__debug_info,regular,debug25Lsection_info:26 .section __DWARF,__apple_names,regular,debug27Lnames_begin:28 .long 1212240712 ## Header Magic29 .short 1 ## Header Version30 .short 0 ## Header Hash Function31 .long 2 ## Header Bucket Count32 .long 2 ## Header Hash Count33 .long 12 ## Header Data Length34 .long 0 ## HeaderData Die Offset Base35 .long 1 ## HeaderData Atom Count36 .short 1 ## DW_ATOM_die_offset37 .short 400 ## not a valid form -- error: unsupported form; failed to read HashData.38 .long 0 ## Bucket 039 .long 1 ## Bucket 140 .long 177678 ## Hash in Bucket 041 .long 177679 ## Hash in Bucket 142 .long LNames0-Lnames_begin ## Offset in Bucket 043 .long LNames1-Lnames_begin ## Offset in Bucket 144LNames0:45 .long 84 ## i46 .long 1 ## Num DIEs47 .long 3048 .long 049LNames1:50 .long 90 ## j51 .long 1 ## Num DIEs52 .long 5853 .long 054 55.subsections_via_symbols56 .section __DWARF,__debug_line,regular,debug57Lsection_line:58Lline_table_start0:59