llvm/test/tools
Teresa Johnson 7e15c9e40f [ThinLTO] Always emit a summary when compiling in ThinLTO mode
Summary:
Emit an empty summary section, instead of no summary section, when
there are no global variables in the index. This ensures that LTO
will treat these files as ThinLTO inputs, instead of as regular
LTO inputs.

In addition to not being what the user likely intended when
compiling with -flto=thin, the current behavior is problematic for
distributed build systems that expect to get ThinLTO index and imports
files back for each input compiled with -flto=thin. Combining into
a single regular LTO module also reduces the backend parallelism.
And in the case where the index was suppressed due to uses in
inline assembly, combining into a single LTO module could provoke
renaming of duplicates that we were trying to prevent by suppressing
the index.

This change required a couple of fixes to handle the empty summary
section.

Reviewers: mehdi_amini

Subscribers: mehdi_amini, llvm-commits, pcc

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282037 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-20 23:07:17 +00:00
..
dsymutil
gold [ThinLTO] Always emit a summary when compiling in ThinLTO mode 2016-09-20 23:07:17 +00:00
llvm-ar
llvm-config
llvm-cov [llvm-cov] Demangle names for hidden instantiation views 2016-09-20 21:27:48 +00:00
llvm-cxxdump
llvm-dwp
llvm-lit
llvm-lto
llvm-lto2 [LTO] Add ability to parse AA pipelines. 2016-09-16 21:03:21 +00:00
llvm-mc
llvm-nm
llvm-objdump DebugInfo: New metadata representation for global variables. 2016-09-13 01:12:59 +00:00
llvm-pdbdump
llvm-profdata [Profile] dump ic value profile value/site-count histogram 2016-09-20 21:04:22 +00:00
llvm-readobj [llvm-readobj] - Teach readobj to print DT_AUXILIARY dynamic tag in human readable form. 2016-09-02 07:35:19 +00:00
llvm-size llvm-size: Add --totals option 2016-09-12 17:08:28 +00:00
llvm-split
llvm-symbolizer
lto
sancov [sancov] extracting AArch64 test to a separate file. 2016-08-15 22:30:37 +00:00
sanstats
yaml2obj