]> granicus.if.org Git - llvm/commit
[ThinLTO] Add an API to trigger file-based API for returning objects to the linker
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 14 Dec 2016 04:56:42 +0000 (04:56 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 14 Dec 2016 04:56:42 +0000 (04:56 +0000)
commitdbca62ee4e04db4f0c44d91ae511d59d35401bcc
tree37c7d9803e53010ac22270a3ce6c287d6722dcb3
parent23156f19246677a896ffbda72eadbcbbc1c47964
[ThinLTO] Add an API to trigger file-based API for returning objects to the linker

Summary:
The motivation is to support better the -object_path_lto option on
Darwin. The linker needs to write down the generate object files on
disk for later use by lldb or dsymutil (debug info are not present
in the final binary). We're moving this into libLTO so that we can
be smarter when a cache is enabled and hard-link when possible
instead of duplicating the files.

Reviewers: tejohnson, deadalnix, pcc

Subscribers: dexonsmith, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289631 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/lto.h
include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
include/llvm/Support/FileSystem.h
lib/LTO/ThinLTOCodeGenerator.cpp
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
test/ThinLTO/X86/save_objects.ll [new file with mode: 0644]
tools/llvm-lto/llvm-lto.cpp
tools/lto/lto.cpp
tools/lto/lto.exports