[PATCH] D17390: Introduce -fembed-bitcode driver option

Steven Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 18 09:38:40 PST 2016


steven_wu created this revision.
steven_wu added a subscriber: cfe-commits.

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.

http://reviews.llvm.org/D17390

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/Driver.h
  include/clang/Driver/Options.td
  include/clang/Driver/ToolChain.h
  lib/Driver/Driver.cpp
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  lib/Driver/Tools.cpp
  test/Driver/embed-bitcode.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17390.48345.patch
Type: text/x-patch
Size: 9930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160218/dc0bbac3/attachment.bin>


More information about the cfe-commits mailing list