llvm/tools/llvm-link/CMakeLists.txt
Teresa Johnson 621de7b4c7 [ThinLTO] Rework llvm-link to use the FunctionImporter
Summary:
Change llvm-link to use the FunctionImporter handling, instead of
manually invoking the Linker. We still need to load the module
in llvm-link to do the desired testing for invalid import requests
(weak functions), and to get the GUID (in case the function is local).

Also change the drop-debug-info test to use llvm-link so that importing
is forced (in order to test debug info handling) and independent of
import logic changes.

Reviewers: mehdi_amini

Subscribers: mgorny, llvm-commits, aprantl

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290964 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-04 14:27:31 +00:00

18 lines
183 B
CMake

set(LLVM_LINK_COMPONENTS
BitWriter
Core
IRReader
Linker
Object
Support
TransformUtils
IPO
)
add_llvm_tool(llvm-link
llvm-link.cpp
DEPENDS
intrinsics_gen
)