35 lines · plain
1// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -S - | FileCheck %s2 3// Test that we don't regress on the size of the line info section. We used4// to handle negative line diffs incorrectly which manifested as very5// large integers being passed to DW_LNS_advance_line.6 7// FIXME: This size is the same as gnu as, but we can probably do a bit better.8// FIXME2: We need a debug_line dumper so that we can test the actual contents.9 10// CHECK: Section {11// CHECK: Index:12// CHECK: Name: .debug_line13// CHECK-NEXT: Type: SHT_PROGBITS14// CHECK-NEXT: Flags [15// CHECK-NEXT: ]16// CHECK-NEXT: Address: 0x017// CHECK-NEXT: Offset:18// CHECK-NEXT: Size: 6219// CHECK-NEXT: Link: 020// CHECK-NEXT: Info: 021// CHECK-NEXT: AddressAlignment: 122// CHECK-NEXT: EntrySize: 023// CHECK-NEXT: }24 25 .section .debug_line,"",@progbits26 .text27foo:28 .file 1 "Driver.ii"29 .loc 1 2 030 nop31 .loc 1 4 032 nop33 .loc 1 3 034 nop35