mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
fc711dd23c
CodeGenPrepare uses extensively TargetLowering which is part of libLLVMCodeGen. This is a layer violation which would introduce eventually a dependence on CodeGen in ScalarOpts. Move CodeGenPrepare into libLLVMCodeGen to avoid that. Follow-up of <rdar://problem/15519855> llvm-svn: 201912
35 lines
497 B
CMake
35 lines
497 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Analysis
|
|
BitWriter
|
|
CodeGen
|
|
Core
|
|
IPA
|
|
IPO
|
|
IRReader
|
|
InstCombine
|
|
Instrumentation
|
|
MC
|
|
ObjCARCOpts
|
|
ScalarOpts
|
|
Support
|
|
Target
|
|
TransformUtils
|
|
Vectorize
|
|
)
|
|
|
|
# Support plugins.
|
|
set(LLVM_NO_DEAD_STRIP 1)
|
|
|
|
add_llvm_tool(opt
|
|
AnalysisWrappers.cpp
|
|
BreakpointPrinter.cpp
|
|
GraphPrinters.cpp
|
|
NewPMDriver.cpp
|
|
Passes.cpp
|
|
PassPrinters.cpp
|
|
PrintSCC.cpp
|
|
opt.cpp
|
|
)
|
|
set_target_properties(opt PROPERTIES ENABLE_EXPORTS 1)
|