]> granicus.if.org Git - clang/commit
Introduce -fembed-bitcode driver option
authorSteven Wu <stevenwu@apple.com>
Tue, 1 Mar 2016 01:07:58 +0000 (01:07 +0000)
committerSteven Wu <stevenwu@apple.com>
Tue, 1 Mar 2016 01:07:58 +0000 (01:07 +0000)
commitc8c8b88b01c6d83f1e1a199ef4194ab1cdfb9210
tree1f0895636d3083a38a3573dbe9071ca9eccc21ab
parentf169ff036d62e4f7c664efc7b25d07650f00be32
Introduce -fembed-bitcode driver option

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262282 91177308-0d34-0410-b5e6-96231b3b80d8
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 [new file with mode: 0644]