Eric Christopher | 2ba5fcb | 2013-02-05 07:29:57 +0000 | [diff] [blame] | 1 | // Check that we split debug output properly |
| 2 | // |
Eric Christopher | 248357f | 2013-02-21 22:35:01 +0000 | [diff] [blame] | 3 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t |
Eric Christopher | 2ba5fcb | 2013-02-05 07:29:57 +0000 | [diff] [blame] | 4 | // RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s |
| 5 | // |
Eric Christopher | 248357f | 2013-02-21 22:35:01 +0000 | [diff] [blame] | 6 | // CHECK-ACTIONS: objcopy{{.*}}--extract-dwo{{.*}}"split-debug.dwo" |
| 7 | // CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o" |
Eric Christopher | 2ba5fcb | 2013-02-05 07:29:57 +0000 | [diff] [blame] | 8 | |
Eric Christopher | 2ba5fcb | 2013-02-05 07:29:57 +0000 | [diff] [blame] | 9 | |
Eric Christopher | d42fb73 | 2013-02-21 22:35:05 +0000 | [diff] [blame] | 10 | // RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t |
| 11 | // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s |
| 12 | // |
| 13 | // CHECK-NO-ACTIONS-NOT: -split-dwarf |
Eric Christopher | 77569ff | 2013-02-22 01:33:46 +0000 | [diff] [blame] | 14 | |
| 15 | |
| 16 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t |
| 17 | // RUN: FileCheck -check-prefix=CHECK-BAD < %t %s |
| 18 | // |
| 19 | // CHECK-BAD-NOT: "Bad.dwo" |
Eric Christopher | d380400 | 2013-02-22 20:12:52 +0000 | [diff] [blame] | 20 | |
| 21 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t |
| 22 | // RUN: FileCheck -check-prefix=CHECK-OPTION < %t %s |
| 23 | // |
| 24 | // CHECK-OPTION: "-split-dwarf-file" "split-debug.dwo" |
Eric Christopher | 30aa6b6 | 2013-06-05 23:58:15 +0000 | [diff] [blame] | 25 | |
| 26 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -S -### %s 2> %t |
| 27 | // RUN: FileCheck -check-prefix=CHECK-ASM < %t %s |
| 28 | // |
| 29 | // CHECK-ASM-NOT: objcopy |
| 30 | |
| 31 | // RUN: %clang -target x86_64-unknown-linux-gnu -no-integrated-as -gsplit-dwarf -c -### %s 2> %t |
| 32 | // RUN: FileCheck -check-prefix=CHECK-IAS < %t %s |
| 33 | // |
| 34 | // CHECK-IAS: objcopy |
David Blaikie | ce3e7a6 | 2015-07-30 21:42:22 +0000 | [diff] [blame] | 35 | |
| 36 | // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -gmlt -S -### %s 2> %t |
| 37 | // RUN: FileCheck -check-prefix=CHECK-GMLT-OVER-SPLIT < %t %s |
| 38 | // |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame^] | 39 | // CHECK-GMLT-OVER-SPLIT: "-debug-info-kind=line-tables-only" |
David Blaikie | ce3e7a6 | 2015-07-30 21:42:22 +0000 | [diff] [blame] | 40 | // CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf=Enable" |
| 41 | // CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf-file" |
| 42 | |
| 43 | // RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -S -### %s 2> %t |
| 44 | // RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-GMLT < %t %s |
| 45 | // |
Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame^] | 46 | // CHECK-SPLIT-OVER-GMLT: "-split-dwarf=Enable" "-debug-info-kind=limited" |
David Blaikie | ce3e7a6 | 2015-07-30 21:42:22 +0000 | [diff] [blame] | 47 | // CHECK-SPLIT-OVER-GMLT: "-split-dwarf-file" |