diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-12-18 15:55:30 -0800 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-12-18 16:42:02 -0800 |
commit | 07b8f8e5f5cad9c4d92c39a4bea50e21e9f0e9f1 (patch) | |
tree | 60d2aceb54e3917af6de9e417fb2933f27f7f2d9 /clang/test/Driver/darwin-opt-record.c | |
parent | f550961c6e833cb828416f1bdee904f4aadbf37d (diff) | |
download | bcm5719-llvm-07b8f8e5f5cad9c4d92c39a4bea50e21e9f0e9f1.tar.gz bcm5719-llvm-07b8f8e5f5cad9c4d92c39a4bea50e21e9f0e9f1.zip |
[Remarks][Driver] Place temporary remark files next to temporary object files
On Darwin, when used for generating a linked binary from a source file
(through an intermediate object file), the driver will invoke `cc1` to
generate a temporary object file. The temporary remark file will now be
emitted next to the object file, which will then be picked up by
`dsymutil` and emitted in the .dSYM bundle.
This is available for all formats except YAML since by default, YAML
doesn't need a section and the remark file will be lost.
Diffstat (limited to 'clang/test/Driver/darwin-opt-record.c')
-rw-r--r-- | clang/test/Driver/darwin-opt-record.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Driver/darwin-opt-record.c b/clang/test/Driver/darwin-opt-record.c index 477307c8022..4a61932bc32 100644 --- a/clang/test/Driver/darwin-opt-record.c +++ b/clang/test/Driver/darwin-opt-record.c @@ -4,6 +4,7 @@ // RUN: %clang -target x86_64-apple-darwin10 -### -c -o FOO -foptimization-record-file=tmp -arch x86_64 -arch x86_64h %s 2>&1 | FileCheck %s --check-prefix=CHECK-MULTIPLE-ARCH-ERROR // RUN: %clang -target x86_64-apple-darwin10 -### -o FOO -fsave-optimization-record %s 2>&1 | FileCheck %s --check-prefix=CHECK-DSYMUTIL-NO-G // RUN: %clang -target x86_64-apple-darwin10 -### -o FOO -g0 -fsave-optimization-record %s 2>&1 | FileCheck %s --check-prefix=CHECK-DSYMUTIL-G0 +// RUN: %clang -target x86_64-apple-darwin10 -### -o FOO -fsave-optimization-record=bitstream %s 2>&1 | FileCheck %s --check-prefix=CHECK-NO-G-PATH-BITSTREAM // // CHECK-MULTIPLE-ARCH: "-cc1" // CHECK-MULTIPLE-ARCH: "-opt-record-file" "FOO-x86_64.opt.yaml" @@ -22,3 +23,9 @@ // CHECK-DSYMUTIL-G0: "-cc1" // CHECK-DSYMUTIL-G0: ld // CHECK-DSYMUTIL-G0: dsymutil +// +// CHECK-NO-G-PATH-BITSTREAM: "-cc1" +// CHECK-NO-G-PATH-BITSTREAM: "-opt-record-file" "[[OUTPATH:.*]].opt.bitstream" +// CHECK-NO-G-PATH-BITSTREAM: "-o" "[[OUTPATH:.*]].o" +// CHECK-NO-G-PATH-BITSTREAM: ld +// CHECK-NO-G-PATH-BITSTREAM: dsymutil |