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
|
|
|
|
2016-08-25 07:22:36 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -gmlt -fno-split-dwarf-inlining -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-GMLT-WITH-SPLIT < %t %s
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-GMLT-WITH-SPLIT: "-enable-split-dwarf"
|
2016-08-25 07:22:36 +08:00
|
|
|
// CHECK-GMLT-WITH-SPLIT: "-debug-info-kind=line-tables-only"
|
|
|
|
// CHECK-GMLT-WITH-SPLIT: "-split-dwarf-file"
|
|
|
|
|
2017-04-29 04:50:25 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -g -fno-split-dwarf-inlining -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-NOINLINE-WITHOUT-SPLIT < %t %s
|
|
|
|
//
|
|
|
|
// CHECK-NOINLINE-WITHOUT-SPLIT-NOT: "-enable-split-dwarf"
|
|
|
|
// CHECK-NOINLINE-WITHOUT-SPLIT: "-fno-split-dwarf-inlining"
|
|
|
|
// CHECK-NOINLINE-WITHOUT-SPLIT: "-debug-info-kind=limited"
|
|
|
|
|
2016-08-25 07:22:36 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gmlt -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-GMLT < %t %s
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-SPLIT-WITH-GMLT: "-enable-split-dwarf"
|
2016-08-25 07:22:36 +08:00
|
|
|
// CHECK-SPLIT-WITH-GMLT: "-debug-info-kind=line-tables-only"
|
|
|
|
// CHECK-SPLIT-WITH-GMLT: "-split-dwarf-file"
|
|
|
|
|
2016-09-01 04:54:35 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -fno-split-dwarf-inlining -S -### %s 2> %t
|
|
|
|
// RUN: FileCheck -check-prefix=CHECK-SPLIT-WITH-NOINL < %t %s
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-SPLIT-WITH-NOINL: "-enable-split-dwarf"
|
2016-09-01 04:54:35 +08:00
|
|
|
// CHECK-SPLIT-WITH-NOINL: "-debug-info-kind=limited"
|
|
|
|
// CHECK-SPLIT-WITH-NOINL: "-split-dwarf-file"
|
|
|
|
|
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
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-GMLT-OVER-SPLIT-NOT: "-enable-split-dwarf"
|
2016-08-25 07:22:36 +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-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
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-SPLIT-OVER-GMLT: "-enable-split-dwarf" "-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
|
|
|
|
2016-08-25 07:22:36 +08:00
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -g0 -fno-split-dwarf-inlining -S -### %s 2> %t
|
2015-12-20 03:41:48 +08:00
|
|
|
// RUN: FileCheck -check-prefix=CHECK-G0-OVER-SPLIT < %t %s
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-enable-split-dwarf"
|
2015-12-20 03:41:48 +08:00
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind
|
2016-08-25 07:22:36 +08:00
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-split-dwarf-file"
|
|
|
|
|
|
|
|
// 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
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-enable-split-dwarf"
|
2016-08-25 07:22:36 +08:00
|
|
|
// CHECK-G0-OVER-SPLIT-NOT: "-debug-info-kind
|
2015-12-20 03:41:48 +08:00
|
|
|
// 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
|
|
|
|
//
|
2017-04-22 07:35:36 +08:00
|
|
|
// CHECK-SPLIT-OVER-G0: "-enable-split-dwarf" "-debug-info-kind=limited"
|
2015-12-20 03:41:48 +08:00
|
|
|
// CHECK-SPLIT-OVER-G0: "-split-dwarf-file"
|