summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2017-03-23 19:47:49 +0000
committerTeresa Johnson <tejohnson@google.com>2017-03-23 19:47:49 +0000
commit488d1dc0edefb3b9852e1fd1ea579d585f7acec7 (patch)
tree2da3e5fadcfecd853b00fe5ae094bd2e7d0b3613 /clang/lib/Frontend/CompilerInvocation.cpp
parent0c6a4ff8dcd32c00b1362d7dd902fe4d4160d642 (diff)
downloadbcm5719-llvm-488d1dc0edefb3b9852e1fd1ea579d585f7acec7.tar.gz
bcm5719-llvm-488d1dc0edefb3b9852e1fd1ea579d585f7acec7.zip
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 01ac69efe44..c1936209a3f 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -641,6 +641,7 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK,
<< A->getAsString(Args) << "-x ir";
Opts.ThinLTOIndexFile = Args.getLastArgValue(OPT_fthinlto_index_EQ);
}
+ Opts.ThinLinkBitcodeFile = Args.getLastArgValue(OPT_fthin_link_bitcode_EQ);
Opts.MSVolatile = Args.hasArg(OPT_fms_volatile);
OpenPOWER on IntegriCloud