]> granicus.if.org Git - clang/commit
[Driver] Fix the case when use -fembed-bitcode and -flto= together
authorSteven Wu <stevenwu@apple.com>
Wed, 18 May 2016 17:04:52 +0000 (17:04 +0000)
committerSteven Wu <stevenwu@apple.com>
Wed, 18 May 2016 17:04:52 +0000 (17:04 +0000)
commit74f6cf927af94712412a2b5e20c9ad59a84680c3
tree9378c4d7ab0acf017852ff9fa86ff082bd21c84f
parentf5e60ebbf2c7a006b0a481e3414cd265aee90737
[Driver] Fix the case when use -fembed-bitcode and -flto= together

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269961 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
test/Driver/embed-bitcode.c