Debian Codegraph @

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

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