Debian Codegraph @

llvm/test/tools/llvm-dwarfdump/X86/DW_AT_language_version.s

raw
1 # Demonstrate dumping DW_AT_language_version without an
2 # accompanying DW_AT_language_name.
3 # RUN: llvm-mc -triple=x86_64--linux -filetype=obj -o %t.o < %s
4 # RUN: llvm-dwarfdump -v %t.o | FileCheck %s --check-prefix=VERBOSE
5 # RUN: llvm-dwarfdump %t.o | FileCheck %s --check-prefix=NO-VERBOSE
6
7 # VERBOSE: .debug_abbrev contents:
8 # VERBOSE: DW_AT_language_version DW_FORM_data4
9 # VERBOSE: DW_AT_language_version DW_FORM_data2
10 # VERBOSE: .debug_info contents:
11 # VERBOSE: DW_AT_language_version [DW_FORM_data4] (201402)
12 # VERBOSE: DW_AT_language_version [DW_FORM_data2] (0)
13
14 # NO-VERBOSE: .debug_info contents:
15 # NO-VERBOSE: DW_AT_language_version (201402)
16 # NO-VERBOSE: DW_AT_language_version (0)
17
18 .section .debug_abbrev,"",@progbits
19 .byte 1 # Abbreviation Code
20 .byte 17 # DW_TAG_compile_unit
21 .byte 1 # DW_CHILDREN_no
22 .ascii "\221\001" # DW_AT_language_version
23 .byte 6 # DW_FORM_data4
24 .ascii "\221\001" # DW_AT_language_version
25 .byte 5 # DW_FORM_data2
26 .byte 0 # EOM(1)
27 .byte 0 # EOM(2)
28 .byte 0 # EOM(3)
29
30 .section .debug_info,"",@progbits
31 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
32 .Ldebug_info_start0:
33 .short 5 # DWARF version number
34 .byte 1 # Unit type
35 .byte 8 # Address Size (in bytes)
36 .long .debug_abbrev # Offset Into Abbrev. Section
37 .byte 1 # Abbrev [1] DW_TAG_compile_unit
38 .long 201402 # DW_AT_language_version
39 .short 0 # DW_AT_language_version
40 .byte 0
41 .Ldebug_info_end0: