summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/embed-bitcode.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix test/Driver/embed-bitcode.c on non-Darwin host by setting the target ↵Mehdi Amini2017-01-241-2/+2
| | | | | | explicitly llvm-svn: 292964
* Forward -bitcode_process_mode to ld64 in marker-only modeMehdi Amini2017-01-241-0/+7
| | | | | | | | | | Reviewers: steven_wu Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D29066 llvm-svn: 292961
* [test] Remove an unwanted match for `UNSUPPORTED:`.Greg Parker2017-01-201-2/+2
| | | | llvm-svn: 292568
* [Driver] Infer the correct option to ld64 for -fembed-bitcodeSteven Wu2016-11-161-0/+12
| | | | | | | | | | | | | | | | | | Summary: -fembed-bitcode infers -bitcode_bundle to ld64 but it is not correctly passed when using LTO. LTO is a special case of -fembed-bitcode which it doesn't require embed the bitcode in a special section in the object file but it requires linker to save that as part of the final executable. rdar://problem/29274226 Reviewers: mehdi_amini Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D26690 llvm-svn: 287084
* [Driver] Fix the case when use -fembed-bitcode and -flto= togetherSteven Wu2016-05-181-0/+2
| | | | | | | | | | | | | | | | | Summary: -fembed-bitcode was only checking for old style LTO flag (-flto) but not considering the new -flto= style option. That makes clang output bitcode embedded in bitcode object when using -flto= and -fembed-bitcode= together. Now clang should output normal bitcode file when using LTO and ignores -fembed-bitcode option. Reviewers: joker.eph Subscribers: joker.eph, cfe-commits Differential Revision: http://reviews.llvm.org/D20374 llvm-svn: 269961
* Embed bitcode in object file (clang cc1 part)Steven Wu2016-05-111-4/+11
| | | | | | | | | | | | | | | | | | | Summary: Teach clang to embed bitcode inside bitcode. When -fembed-bitcode cc1 option is used, clang will embed both the input bitcode and cc1 commandline into the bitcode in special sections before compiling to the object file. Using -fembed-bitcode-marker will only introduce a marker in both sections. Depends on D17390 Reviewers: rsmith Subscribers: yaron.keren, vsk, cfe-commits Differential Revision: http://reviews.llvm.org/D17392 llvm-svn: 269202
* Explicitly select IAS on one more RUN line in new embed-bitcode.c test.Daniel Sanders2016-03-011-1/+1
| | | | | | | This should fix clang-cmake-mips builder since MIPS does not have IAS enabled by default (yet). llvm-svn: 262409
* Explicitly select IAS in new embed-bitcode.c test.Daniel Sanders2016-03-011-2/+2
| | | | | | | This should fix clang-cmake-mips builder since MIPS does not have IAS enabled by default (yet). llvm-svn: 262350
* Fix the testcase in r262282Steven Wu2016-03-011-6/+2
| | | | | | | -bitcode_bundle is only passed to the darwin ld64 linker and it is only implemented there. Remove the check on the linker flag. llvm-svn: 262286
* Introduce -fembed-bitcode driver optionSteven Wu2016-03-011-0/+38
Summary: This is the clang driver part of the change to embedded bitcode. This includes: 1. -fembed-bitcode option which breaks down the compilation into two stages. The first stage emits optimized bitcode and the second stage compiles bitcode into object file. 2. -fembed-bitcode-marker option which doesn't really break down to two stages to speedup the compilation flow. 3. pass the correct linker flag to darwin linker if tool chains supports embedded bitcode. Reviewers: rsmith, thakis Subscribers: thakis, cfe-commits Differential Revision: http://reviews.llvm.org/D17390 llvm-svn: 262282
OpenPOWER on IntegriCloud