[ThinLTO] Clang support for emitting minimized bitcode for thin link
authorTeresa Johnson <tejohnson@google.com>
Thu, 23 Mar 2017 19:47:49 +0000 (19:47 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 23 Mar 2017 19:47:49 +0000 (19:47 +0000)
commit488d1dc0edefb3b9852e1fd1ea579d585f7acec7
tree2da3e5fadcfecd853b00fe5ae094bd2e7d0b3613
parent0c6a4ff8dcd32c00b1362d7dd902fe4d4160d642
[ThinLTO] Clang support for emitting minimized bitcode for thin link

Summary:
Clang companion patch to LLVM patch D31027, which adds support
for emitting minimized bitcode file for use in the thin link step.
Add a cc1 option -fthin-link-bitcode=<file> to trigger this behavior.

Depends on D31027.

Reviewers: mehdi_amini, pcc

Subscribers: cfe-commits, Prazek

Differential Revision: https://reviews.llvm.org/D31050

llvm-svn: 298639
clang/include/clang/Driver/CC1Options.td
clang/include/clang/Frontend/CodeGenOptions.h
clang/lib/CodeGen/BackendUtil.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/thin_link_bitcode.c [new file with mode: 0644]