summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/embed-bitcode.c
Commit message (Collapse)AuthorAgeFilesLines
* [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