Kevin Enderby | 4eaf8ef | 2012-11-01 17:31:35 +0000 | [diff] [blame] | 1 | // RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t |
Adrian Prantl | 7bc1b28 | 2017-09-11 22:59:45 +0000 | [diff] [blame] | 2 | // RUN: llvm-dwarfdump -debug-line %t | FileCheck %s |
Kevin Enderby | 4eaf8ef | 2012-11-01 17:31:35 +0000 | [diff] [blame] | 3 | |
| 4 | # 100 "t.s" 1 |
| 5 | .globl _bar |
| 6 | _bar: |
David Blaikie | c714ef4 | 2014-03-17 01:52:11 +0000 | [diff] [blame] | 7 | movl $0, %eax |
David Blaikie | 8bef7cd | 2014-03-17 01:52:04 +0000 | [diff] [blame] | 8 | # 3 "inc/g.s" |
Kevin Enderby | 4eaf8ef | 2012-11-01 17:31:35 +0000 | [diff] [blame] | 9 | movl $0, %eax |
| 10 | L1: leave |
David Blaikie | 8bef7cd | 2014-03-17 01:52:04 +0000 | [diff] [blame] | 11 | # 42 "t.s" |
Kevin Enderby | 4eaf8ef | 2012-11-01 17:31:35 +0000 | [diff] [blame] | 12 | ret |
| 13 | |
| 14 | // rdar://9275556 |
| 15 | |
| 16 | // We check that the source name "t.s" is picked up |
Paul Robinson | 7b98be2 | 2018-02-06 00:43:26 +0000 | [diff] [blame] | 17 | // CHECK: include_directories[ 1] = "{{.*(/|\\\\)}}test{{(/|\\\\)}}MC{{(/|\\\\)}}MachO" |
Paul Robinson | 0a22709 | 2018-02-05 20:43:15 +0000 | [diff] [blame] | 18 | // CHECK: include_directories[ 2] = "inc" |
Scott Linder | 16c7bda | 2018-02-23 23:01:06 +0000 | [diff] [blame] | 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 |
David Blaikie | 8bef7cd | 2014-03-17 01:52:04 +0000 | [diff] [blame] | 28 | // CHECK-NOT: file_names |
Kevin Enderby | 4eaf8ef | 2012-11-01 17:31:35 +0000 | [diff] [blame] | 29 | |
| 30 | // We check that the source line number 100 is picked up before the "movl" |
Diego Novillo | 5b5cf50 | 2014-02-14 19:27:53 +0000 | [diff] [blame] | 31 | // CHECK: Address Line Column File ISA Discriminator Flags |
| 32 | // CHECK: ------------------ ------ ------ ------ --- ------------- ------------- |
| 33 | // CHECK: 0x0000000000000000 102 0 2 0 0 is_stmt |