mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 20:43:44 +02:00
18163c89b8
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 llvm-svn: 306208
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)
|