[ThinLTO] Always create linked objects file for --thinlto-index-only=
authorVitaly Buka <vitalybuka@google.com>
Thu, 22 Feb 2018 19:06:15 +0000 (19:06 +0000)
committerVitaly Buka <vitalybuka@google.com>
Thu, 22 Feb 2018 19:06:15 +0000 (19:06 +0000)
commita139b69e125cc91e32a4c852a7b3268a732f7df0
tree18081726dbaf792a7c635ff9a246c4fb0828b37d
parentffbf7dbeff9973204870a1cf2da7acd5294ea21c
[ThinLTO] Always create linked objects file for --thinlto-index-only=

Summary:
ThinLTO indexing may decide to skip all objects. If we don't write something to
the list build system may consider this as failure or linker can reuse a file
from the previews build.

Reviewers: pcc, tejohnson

Subscribers: mehdi_amini, inglorion, eraman, hiraditya, llvm-commits

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

llvm-svn: 325819
llvm/include/llvm/LTO/LTO.h
llvm/lib/LTO/LTO.cpp
llvm/test/tools/gold/X86/thinlto_no_objects.ll [new file with mode: 0644]
llvm/tools/gold/gold-plugin.cpp
llvm/tools/llvm-lto2/llvm-lto2.cpp