1 // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t 2 // RUN: llvm-dwarfdump -debug-line %t | FileCheck %s 3 4 # 100 "t.s" 1 5 .globl _bar 6 _bar: 7 movl $0, %eax 8 # 3 "inc/g.s" 9 movl $0, %eax 10 L1: leave 11 # 42 "t.s" 12 ret 13 14 // rdar://9275556 15 16 // We check that the source name "t.s" is picked up 17 // CHECK: include_directories[ 1] = "{{.*(/|\\\\)}}test{{(/|\\\\)}}MC{{(/|\\\\)}}MachO" 18 // CHECK: include_directories[ 2] = "inc" 19 // CHECK: file_names[ 1]: 20 // CHECK-NEXT: name: "gen-dwarf-cpp.s" 21 // CHECK-NEXT: dir_index: 1 22 // CHECK: file_names[ 2]: 23 // CHECK-NEXT: name: "t.s" 24 // CHECK-NEXT: dir_index: 0 25 // CHECK: file_names[ 3]: 26 // CHECK-NEXT: name: "g.s" 27 // CHECK-NEXT: dir_index: 2 28 // CHECK-NOT: file_names 29 30 // We check that the source line number 100 is picked up before the "movl" 31 // CHECK: Address Line Column File ISA Discriminator Flags 32 // CHECK: ------------------ ------ ------ ------ --- ------------- ------------- 33 // CHECK: 0x0000000000000000 102 0 2 0 0 is_stmt 34