[PATCH] D55525: [Driver] Add support for -fembed-bitcode for assembly file

Steven Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 11 16:37:13 PST 2018


steven_wu added a comment.

In D55525#1327742 <https://reviews.llvm.org/D55525#1327742>, @compnerd wrote:

> This really feels odd.  Why not expect that the developer will add the content themselves?  I'm not sure I understand the motivation for this change.


The main motivation for upstreaming this is to make -fembed-bitcode behaves the same as Apple clang.
The section is just a marker for ld64 to tell the linker there is no bitcode available for this specific module because it is built from assembly. If ld64 sees this marker, it will pull the object file into the bitcode bundle, rather than error out and complaining about missing bitcode.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55525/new/

https://reviews.llvm.org/D55525





More information about the cfe-commits mailing list