This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Fix the case when use -fembed-bitcode and -flto= together
ClosedPublic

Authored by steven_wu on May 18 2016, 10:08 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

steven_wu updated this revision to Diff 57645.May 18 2016, 10:08 AM
steven_wu retitled this revision from to [Driver] Fix the case when use -fembed-bitcode and -flto= together.
steven_wu updated this object.
steven_wu added a reviewer: mehdi_amini.
steven_wu added a subscriber: cfe-commits.
mehdi_amini accepted this revision.May 18 2016, 10:09 AM
mehdi_amini edited edge metadata.

LGTM.

This revision is now accepted and ready to land.May 18 2016, 10:09 AM
This revision was automatically updated to reflect the committed changes.