brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · af58175 Raw
36 lines · plain
1# Demonstrate dumping DW_AT_language_name.2# RUN: llvm-mc -triple=x86_64--linux -filetype=obj < %s | \3# RUN:     llvm-dwarfdump -v - | FileCheck %s4 5# CHECK: .debug_abbrev contents:6# CHECK: DW_AT_language_name DW_FORM_data27# CHECK: DW_AT_language_name DW_FORM_data28# 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,"",@progbits13        .byte   1                       # Abbreviation Code14        .byte   17                      # DW_TAG_compile_unit15        .byte   1                       # DW_CHILDREN_no 16        .ascii  "\220\001"              # DW_AT_language_name17        .byte   5                       # DW_FORM_data218        .ascii  "\220\001"              # DW_AT_language_name19        .byte   5                       # DW_FORM_data220        .byte   0                       # EOM(1)21        .byte   0                       # EOM(2)22        .byte   0                       # EOM(3)23 24        .section        .debug_info,"",@progbits25        .long   .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit26.Ldebug_info_start0:27        .short  5                       # DWARF version number28        .byte   1                       # Unit type29        .byte   8                       # Address Size (in bytes)30        .long   .debug_abbrev           # Offset Into Abbrev. Section31        .byte   1                       # Abbrev [1] DW_TAG_compile_unit32        .short  3                       # DW_AT_language_name33        .short  0                       # DW_AT_language_name34        .byte   0 35.Ldebug_info_end0:36