[PATCH] D17389: Embed bitcode in object file (clang cc1 part)
Steven Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 18 09:35:38 PST 2016
steven_wu created this revision.
steven_wu added a subscriber: cfe-commits.
Herald added subscribers: dschuff, jfb.
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.
Don't emit uselist order for -fembed-bitcode
Embedded bitcode are embedded without serialization in their normal
flow. No uselist order need to be recorded.
Apply whitelist to options used in embedded bitcode
Add a whitelist for the options that are allowed to be used with
-fembed-bitcode. That is minimize the number of the cc1 command
that needs to be embedded in the object file.
http://reviews.llvm.org/D17389
Files:
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/CodeGen/BackendUtil.h
include/clang/Frontend/CodeGenOptions.def
include/clang/Frontend/CodeGenOptions.h
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenAction.cpp
lib/Driver/Tools.cpp
lib/Driver/Tools.h
lib/Frontend/CompilerInvocation.cpp
test/Driver/embed-bitcode.c
test/Frontend/embed-bitcode.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17389.48344.patch
Type: text/x-patch
Size: 28441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160218/c00c532f/attachment-0001.bin>
More information about the cfe-commits
mailing list