]> granicus.if.org Git - clang/commit
Embed bitcode in object file (clang cc1 part)
authorSteven Wu <stevenwu@apple.com>
Wed, 11 May 2016 16:26:03 +0000 (16:26 +0000)
committerSteven Wu <stevenwu@apple.com>
Wed, 11 May 2016 16:26:03 +0000 (16:26 +0000)
commit22dbcfe84e6eb926e4f77dcd4716e02cf9583f7f
tree18f63a5a49138e87e05f461a6ab05e4ab5b31af0
parentffe7e3ff0898a67a4cd610cbe1f70c9002da8760
Embed bitcode in object file (clang cc1 part)

Summary:
Teach clang to embed bitcode inside bitcode. When -fembed-bitcode cc1
option is used, clang will embed both the input bitcode and cc1
commandline into the bitcode in special sections before compiling to
the object file.  Using -fembed-bitcode-marker will only introduce a
marker in both sections.

Depends on D17390

Reviewers: rsmith

Subscribers: yaron.keren, vsk, cfe-commits

Differential Revision: http://reviews.llvm.org/D17392

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269202 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/BackendUtil.h
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenAction.cpp
lib/Driver/Driver.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/embed-bitcode.c
test/Frontend/embed-bitcode.ll [new file with mode: 0644]