brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 6df3f88 Raw
62 lines · plain
1# RUN: llvm-mc -triple i386-unknown-unknown %s -filetype=obj -o %t.o2# RUN: llvm-readobj -r %t.o | FileCheck %s3# RUN: llvm-dwarfdump -debug-line %t.o | FileCheck %s -check-prefix=DWARF-DUMP4 5    .file 1 "foo.c"6    .text7    .globl foo8    .type foo, @function9    .align 410foo:11    .loc 1 2 discriminator 112    ret13    .size foo, .-foo14 15        .section        .debug_info,"",@progbits16.L.debug_info_begin0:17        .long   34                      # Length of Unit18        .short  4                       # DWARF version number19        .long   .L.debug_abbrev_begin   # Offset Into Abbrev. Section20        .byte   4                       # Address Size (in bytes)21        .byte   1                       # Abbrev [1] 0xb:0x1b DW_TAG_compile_unit22        .long   info_string0            # DW_AT_producer23        .short  12                      # DW_AT_language24        .long   info_string1            # DW_AT_name25        .quad   0                       # DW_AT_low_pc26        .long   0                       # DW_AT_stmt_list27        .long   info_string2            # DW_AT_comp_dir28                                        # DW_AT_APPLE_optimized29        .section        .debug_abbrev,"",@progbits30.L.debug_abbrev_begin:31        .byte   1                       # Abbreviation Code32        .byte   17                      # DW_TAG_compile_unit33        .byte   0                       # DW_CHILDREN_no34        .byte   37                      # DW_AT_producer35        .byte   14                      # DW_FORM_strp36        .byte   19                      # DW_AT_language37        .byte   5                       # DW_FORM_data238        .byte   3                       # DW_AT_name39        .byte   14                      # DW_FORM_strp40        .byte   17                      # DW_AT_low_pc41        .byte   1                       # DW_FORM_addr42        .byte   16                      # DW_AT_stmt_list43        .byte   23                      # DW_FORM_sec_offset44        .byte   27                      # DW_AT_comp_dir45        .byte   14                      # DW_FORM_strp46        .ascii  "\341\177"              # DW_AT_APPLE_optimized47        .byte   25                      # DW_FORM_flag_present48        .byte   0                       # EOM(1)49        .byte   0                       # EOM(2)50        .byte   0                       # EOM(3)51.L.debug_abbrev_end:52 53 54# CHECK:      Relocations [55# CHECK:        Section ({{[^ ]+}}) .rel.debug_line {56# CHECK-NEXT:     0x2E R_386_32 .text57# CHECK-NEXT:   }58 59# DWARF-DUMP: Address            Line   Column File   ISA Discriminator OpIndex Flags60# DWARF-DUMP: ------------------ ------ ------ ------ --- ------------- ------- -------------61# DWARF-DUMP: 0x0000000000000000     2      0      1   0             1        0  is_stmt62