2013-02-05 15:29:57 +08:00
|
|
|
// Check that we split debug output properly
|
|
|
|
//
|
2013-02-22 06:35:01 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
|
2013-02-05 15:29:57 +08:00
|
|
|
// RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
|
|
|
|
//
|
2013-02-22 06:35:01 +08:00
|
|
|
// CHECK-ACTIONS: objcopy{{.*}}--extract-dwo{{.*}}"split-debug.dwo"
|
|
|
|
// CHECK-ACTIONS: objcopy{{.*}}--strip-dwo{{.*}}"split-debug.o"
|
2013-02-05 15:29:57 +08:00
|
|
|
|
|
|
|
|
2013-02-22 06:35:05 +08:00
|
|
|
// RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-NO-ACTIONS-NOT: -split-dwarf
|
2013-02-22 09:33:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-BAD-NOT: "Bad.dwo"
|
2013-02-23 04:12:52 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-OPTION < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-OPTION: "-split-dwarf-file" "split-debug.dwo"
|
2013-06-06 07:58:15 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-ASM < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-ASM-NOT: objcopy
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -no-integrated-as -gsplit-dwarf -c -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-IAS < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-IAS: objcopy
|
2015-07-31 05:42:22 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -gmlt -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-GMLT-OVER-SPLIT < %t %s
|
|
|
|
//
|
2015-10-08 12:24:12 +08:00
|
|
|
// CHECK-GMLT-OVER-SPLIT: "-debug-info-kind=line-tables-only"
|
2015-07-31 05:42:22 +08:00
|
|
|
// CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf=Enable"
|
|
|
|
// CHECK-GMLT-OVER-SPLIT-NOT: "-split-dwarf-file"
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-GMLT < %t %s
|
|
|
|
//
|
2015-10-08 12:24:12 +08:00
|
|
|
// CHECK-SPLIT-OVER-GMLT: "-split-dwarf=Enable" "-debug-info-kind=limited"
|
2015-07-31 05:42:22 +08:00
|
|
|
// CHECK-SPLIT-OVER-GMLT: "-split-dwarf-file"
|
2015-12-20 03:41:48 +08:00
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -g0 -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind
|
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf=Enable"
|
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-file"
|
|
|
|
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -g0 -gsplit-dwarf -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-SPLIT-OVER-G0 < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-SPLIT-OVER-G0: "-split-dwarf=Enable" "-debug-info-kind=limited"
|
|
|
|
// CHECK-SPLIT-OVER-G0: "-split-dwarf-file"
|