diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-08-11 14:58:12 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-08-11 14:58:12 +0000 |
commit | 2d320e58a92a298e993055d4bdcda5c96e916a77 (patch) | |
tree | 57b2dd2ea2f433fec9d472067535987c62d18cc5 /lib/LTO/CMakeLists.txt | |
parent | d418a914db80b066188ee37154f9be90e5fa2b59 (diff) |
Restore "Resolution-based LTO API."
This restores commit r278330, with fixes for a few bot failures:
- Fix a late change I had made to the save temps output file that I
missed due to existing files sitting on my disk
- Fix a bunch of Windows bot failures with "ambiguous call to overloaded
function" due to confusion between llvm::make_unique vs
std::make_unique (preface the new make_unique calls with "llvm::")
- Attempt to fix a modules bot failure by adding a missing include
to LTO/Config.h.
Original change:
Resolution-based LTO API.
Summary:
This introduces a resolution-based LTO API. The main advantage of this API over
existing APIs is that it allows the linker to supply a resolution for each
symbol in each object, rather than the combined object as a whole. This will
become increasingly important for use cases such as ThinLTO which require us
to process symbol resolutions in a more complicated way than just adjusting
linkage.
Patch by Peter Collingbourne.
Reviewers: rafael, tejohnson, mehdi_amini
Subscribers: lhames, tejohnson, mehdi_amini, llvm-commits
Differential Revision: https://reviews.llvm.org/D20268
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LTO/CMakeLists.txt')
-rw-r--r-- | lib/LTO/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/LTO/CMakeLists.txt b/lib/LTO/CMakeLists.txt index 2007ef21a61..c5e34fb0b3a 100644 --- a/lib/LTO/CMakeLists.txt +++ b/lib/LTO/CMakeLists.txt @@ -49,6 +49,7 @@ endif() add_llvm_library(LLVMLTO LTO.cpp + LTOBackend.cpp LTOModule.cpp LTOCodeGenerator.cpp UpdateCompilerUsed.cpp |