mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-12 05:40:30 +00:00
![Tobias Grosser](/assets/img/avatar_default.png)
This patch links LLVM back-ends into bugpoint the same way they are already available in 'opt' and 'clang'. This resolves an inconsistency that allowed the use of LLVM backends in loadable modules that run in 'opt', but that would prevent the debugging of these modules with bugpoint due to unavailable / unresolved symbols. For e.g. In D31859, Polly requires the NVPTX back-end. Reviewers: hfinkel, bogner, chandlerc, grosser, Meinersbur Subscribers: bollu, mgorny, grosser, Meinersbur Tags: #polly Contributed by: Singapuram Sanjay Differential Revision: https://reviews.llvm.org/D32003 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306208 cdac9f57-aa62-4fd3-8940-286f4534e8a0
44 lines
764 B
CMake
44 lines
764 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Analysis
|
|
BitWriter
|
|
CodeGen
|
|
Core
|
|
IPO
|
|
IRReader
|
|
InstCombine
|
|
Instrumentation
|
|
Linker
|
|
ObjCARCOpts
|
|
ScalarOpts
|
|
Support
|
|
Target
|
|
TransformUtils
|
|
Vectorize
|
|
)
|
|
|
|
# Support plugins.
|
|
set(LLVM_NO_DEAD_STRIP 1)
|
|
|
|
add_llvm_tool(bugpoint
|
|
BugDriver.cpp
|
|
CrashDebugger.cpp
|
|
ExecutionDriver.cpp
|
|
ExtractFunction.cpp
|
|
FindBugs.cpp
|
|
Miscompilation.cpp
|
|
OptimizerDriver.cpp
|
|
ToolRunner.cpp
|
|
bugpoint.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|
|
export_executable_symbols(bugpoint)
|
|
|
|
if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
|
|
target_link_libraries(bugpoint Polly)
|
|
# Ensure LLVMTarget can resolve dependences in Polly.
|
|
target_link_libraries(bugpoint LLVMTarget)
|
|
endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
|