]> granicus.if.org Git - clang/commit
[ThinLTO] Ignore object files with no ThinLTO modules if -fthinlto-index= is set
authorVitaly Buka <vitalybuka@google.com>
Fri, 16 Feb 2018 23:34:16 +0000 (23:34 +0000)
committerVitaly Buka <vitalybuka@google.com>
Fri, 16 Feb 2018 23:34:16 +0000 (23:34 +0000)
commit4a11be988c50be905a2ce2c9171e9acffd2b46ad
tree5136947e7a8aa46867cc2fe7f1d8cc33f8ea91b6
parent16003bcdb4287aab3b87300d9e95f9b49ce52c1c
[ThinLTO] Ignore object files with no ThinLTO modules if -fthinlto-index= is set

Summary:
ThinLTO compilation may decide not to split module and keep at as regular LTO.
In this can this module already processed during indexing and already a part of
merged object file. So here we can just skip it.

Reviewers: pcc, tejohnson

Reviewed By: tejohnson

Subscribers: mehdi_amini, inglorion, eraman, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@325410 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/BackendUtil.h
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenAction.cpp
test/CodeGen/thinlto_backend.ll