1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/tools/llvm-link/CMakeLists.txt
Teresa Johnson 6f31c4d0cc [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

llvm-svn: 290964
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
)