brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 3b7e18f Raw
30 lines · plain
1// This checks that llvm-mc is able to produce 64-bit debug info.2 3// RUN: llvm-mc -g -dwarf64 -triple x86_64-apple-darwin10 %s -filetype=obj -o %t4// RUN: llvm-dwarfdump -v %t | FileCheck %s5 6// CHECK:      .debug_info contents:7// CHECK-NEXT: 0x00000000: Compile Unit: {{.*}} format = DWARF64, version = {{.*}}, abbr_offset = 0x0000, addr_size = 0x088// CHECK:      DW_TAG_compile_unit [1] *9// CHECK-NEXT:   DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000000000000000)10// CHECK:      DW_TAG_label [2]11// CHECK-NEXT:   DW_AT_name [DW_FORM_string] ("foo")12 13// CHECK:      .debug_frame contents:14// CHECK:      00000000 {{([[:xdigit:]]{16})}} ffffffffffffffff CIE15// CHECK-NEXT:   Format: DWARF6416// CHECK:      {{([[:xdigit:]]{8})}} {{([[:xdigit:]]{16})}} 0000000000000000 FDE cie=00000000 pc=00000000...0000000117// CHECK-NEXT:   Format: DWARF6418 19// CHECK:      .debug_aranges contents:20// CHECK-NEXT: Address Range Header: length = 0x0000000000000034, format = DWARF64, version = 0x0002, cu_offset = 0x0000000000000000, addr_size = 0x08, seg_size = 0x0021// CHECK-NEXT: [0x0000000000000000,  0x0000000000000001)22// CHECK-EMPTY:23 24    .cfi_sections .debug_frame25 26_foo:27    .cfi_startproc28    nop29    .cfi_endproc30