Files
clang-p2996/llvm/test/MC/MachO/gen-dwarf-cpp.s
David Stenberg 6aa94c64a5 [DWARF] Add printout for op-index
This is a preparatory patch for extending DWARFDebugLine to properly
parse line number programs with maximum_operations_per_instruction > 1
for VLIW targets.

Add some scaffolding for handling op-index in line number programs, and
add printouts for that in the table. As this affects a lot of tests,
this is done in a separate commit to get a cleaner review for the actual
op-index implementation.

Verbose printouts are not present in many tests, and adding op-index to
those will require a bit more code changes, so that is done in the
actual implementation patch.

Reviewed By: StephenTozer

Differential Revision: https://reviews.llvm.org/D152535
2023-07-12 12:03:44 +02:00

30 lines
863 B
ArmAsm

// RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
// RUN: llvm-dwarfdump -debug-line %t | FileCheck %s
# 100 "t.s" 1
.globl _bar
_bar:
movl $0, %eax
# 3 "inc/g.s"
movl $0, %eax
L1: leave
# 42 "t.s"
ret
// rdar://9275556
// We check that the source name "t.s" is picked up
// CHECK: include_directories[ 1] = "inc"
// CHECK: file_names[ 1]:
// CHECK-NEXT: name: "t.s"
// CHECK-NEXT: dir_index: 0
// CHECK: file_names[ 2]:
// CHECK-NEXT: name: "g.s"
// CHECK-NEXT: dir_index: 1
// CHECK-NOT: file_names
// We check that the source line number 100 is picked up before the "movl"
// CHECK: Address Line Column File ISA Discriminator OpIndex Flags
// CHECK: ------------------ ------ ------ ------ --- ------------- ------- -------------
// CHECK: 0x0000000000000000 102 0 1 0 0 0 is_stmt