1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.

llvm-svn: 196908
This commit is contained in:
NAKAMURA Takumi 2013-12-10 11:13:32 +00:00
parent fe135fe65e
commit 955efe24ce
48 changed files with 291 additions and 57 deletions

View File

@ -1,4 +1,11 @@
set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter) set(LLVM_LINK_COMPONENTS
BitWriter
Core
ExecutionEngine
JIT
Support
nativecodegen
)
add_llvm_example(BrainF add_llvm_example(BrainF
BrainF.cpp BrainF.cpp

View File

@ -1,4 +1,11 @@
set(LLVM_LINK_COMPONENTS jit mcjit nativecodegen) set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
MCJIT
Support
nativecodegen
)
set(LLVM_REQUIRES_EH 1) set(LLVM_REQUIRES_EH 1)
add_llvm_example(ExceptionDemo add_llvm_example(ExceptionDemo

View File

@ -1,4 +1,11 @@
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
Interpreter
JIT
Support
nativecodegen
)
add_llvm_example(Fibonacci add_llvm_example(Fibonacci
fibonacci.cpp fibonacci.cpp

View File

@ -1,4 +1,11 @@
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
Interpreter
JIT
Support
nativecodegen
)
add_llvm_example(HowToUseJIT add_llvm_example(HowToUseJIT
HowToUseJIT.cpp HowToUseJIT.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS core) set(LLVM_LINK_COMPONENTS
Core
Support
)
add_llvm_example(Kaleidoscope-Ch3 add_llvm_example(Kaleidoscope-Ch3
toy.cpp toy.cpp

View File

@ -1,4 +1,13 @@
set(LLVM_LINK_COMPONENTS core jit interpreter native) set(LLVM_LINK_COMPONENTS
Analysis
Core
ExecutionEngine
InstCombine
JIT
ScalarOpts
Support
nativecodegen
)
add_llvm_example(Kaleidoscope-Ch4 add_llvm_example(Kaleidoscope-Ch4
toy.cpp toy.cpp

View File

@ -1,4 +1,13 @@
set(LLVM_LINK_COMPONENTS core jit interpreter native) set(LLVM_LINK_COMPONENTS
Analysis
Core
ExecutionEngine
InstCombine
JIT
ScalarOpts
Support
nativecodegen
)
add_llvm_example(Kaleidoscope-Ch5 add_llvm_example(Kaleidoscope-Ch5
toy.cpp toy.cpp

View File

@ -1,4 +1,13 @@
set(LLVM_LINK_COMPONENTS core jit interpreter native) set(LLVM_LINK_COMPONENTS
Analysis
Core
ExecutionEngine
InstCombine
JIT
ScalarOpts
Support
nativecodegen
)
add_llvm_example(Kaleidoscope-Ch6 add_llvm_example(Kaleidoscope-Ch6
toy.cpp toy.cpp

View File

@ -1,4 +1,15 @@
set(LLVM_LINK_COMPONENTS core jit interpreter native) set(LLVM_LINK_COMPONENTS
Analysis
Core
ExecutionEngine
InstCombine
JIT
ScalarOpts
Support
TransformUtils
nativecodegen
)
set(LLVM_REQUIRES_RTTI 1) set(LLVM_REQUIRES_RTTI 1)
add_llvm_example(Kaleidoscope-Ch7 add_llvm_example(Kaleidoscope-Ch7

View File

@ -1,4 +1,8 @@
set(LLVM_LINK_COMPONENTS bitwriter) set(LLVM_LINK_COMPONENTS
BitWriter
Core
Support
)
add_llvm_example(ModuleMaker add_llvm_example(ModuleMaker
ModuleMaker.cpp ModuleMaker.cpp

View File

@ -1,4 +1,11 @@
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
Interpreter
JIT
Support
nativecodegen
)
add_llvm_example(ParallelJIT add_llvm_example(ParallelJIT
ParallelJIT.cpp ParallelJIT.cpp

View File

@ -1,5 +1,20 @@
set(LLVM_LINK_COMPONENTS asmparser instrumentation scalaropts ipo set(LLVM_LINK_COMPONENTS
linker bitreader bitwriter irreader vectorize objcarcopts) Analysis
BitWriter
Core
IPA
IPO
IRReader
InstCombine
Instrumentation
Linker
ObjCARCOpts
ScalarOpts
Support
Target
TransformUtils
Vectorize
)
add_llvm_tool(bugpoint add_llvm_tool(bugpoint
BugDriver.cpp BugDriver.cpp

View File

@ -1,4 +1,15 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} bitreader asmparser irreader) set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
AsmPrinter
CodeGen
Core
IRReader
MC
ScalarOpts
SelectionDAG
Support
Target
)
add_llvm_tool(llc add_llvm_tool(llc
llc.cpp llc.cpp

View File

@ -1,6 +1,18 @@
add_subdirectory(ChildTarget) add_subdirectory(ChildTarget)
set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser irreader selectiondag native instrumentation) set(LLVM_LINK_COMPONENTS
CodeGen
Core
ExecutionEngine
IRReader
Instrumentation
Interpreter
JIT
MCJIT
SelectionDAG
Support
native
)
if( LLVM_USE_OPROFILE ) if( LLVM_USE_OPROFILE )
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS support object bitreader) set(LLVM_LINK_COMPONENTS
Object
Support
)
add_llvm_tool(llvm-ar add_llvm_tool(llvm-ar
llvm-ar.cpp llvm-ar.cpp

View File

@ -1,4 +1,9 @@
set(LLVM_LINK_COMPONENTS asmparser bitwriter) set(LLVM_LINK_COMPONENTS
AsmParser
BitWriter
Core
Support
)
add_llvm_tool(llvm-as add_llvm_tool(llvm-as
llvm-as.cpp llvm-as.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS bitreader) set(LLVM_LINK_COMPONENTS
BitReader
Support
)
add_llvm_tool(llvm-bcanalyzer add_llvm_tool(llvm-bcanalyzer
llvm-bcanalyzer.cpp llvm-bcanalyzer.cpp

View File

@ -1,4 +1,11 @@
set(LLVM_LINK_COMPONENTS all) set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
BitReader
Core
MCDisassembler
Object
Target
)
if (LLVM_COMPILER_IS_GCC_COMPATIBLE) if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wstrict-prototypes") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wstrict-prototypes")

View File

@ -1,4 +1,8 @@
set(LLVM_LINK_COMPONENTS support asmparser bitreader irreader) set(LLVM_LINK_COMPONENTS
Core
IRReader
Support
)
add_llvm_tool(llvm-diff add_llvm_tool(llvm-diff
llvm-diff.cpp llvm-diff.cpp

View File

@ -1,4 +1,8 @@
set(LLVM_LINK_COMPONENTS bitreader analysis) set(LLVM_LINK_COMPONENTS
BitReader
Core
Support
)
add_llvm_tool(llvm-dis add_llvm_tool(llvm-dis
llvm-dis.cpp llvm-dis.cpp

View File

@ -1,6 +1,7 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
DebugInfo DebugInfo
Object Object
Support
) )
add_llvm_tool(llvm-dwarfdump add_llvm_tool(llvm-dwarfdump

View File

@ -1,4 +1,10 @@
set(LLVM_LINK_COMPONENTS asmparser ipo bitreader bitwriter irreader) set(LLVM_LINK_COMPONENTS
BitWriter
Core
IPO
IRReader
Support
)
add_llvm_tool(llvm-extract add_llvm_tool(llvm-extract
llvm-extract.cpp llvm-extract.cpp

View File

@ -1,4 +1,10 @@
set(LLVM_LINK_COMPONENTS linker bitreader bitwriter asmparser irreader) set(LLVM_LINK_COMPONENTS
BitWriter
Core
IRReader
Linker
Support
)
add_llvm_tool(llvm-link add_llvm_tool(llvm-link
llvm-link.cpp llvm-link.cpp

View File

@ -1,4 +1,10 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} lto support) set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Core
LTO
MC
Support
)
add_llvm_tool(llvm-lto add_llvm_tool(llvm-lto
llvm-lto.cpp llvm-lto.cpp

View File

@ -1,4 +1,9 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support MC MCParser MCDisassembler) set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
MC
MCParser
Support
)
add_llvm_tool(llvm-mc add_llvm_tool(llvm-mc
llvm-mc.cpp llvm-mc.cpp

View File

@ -1,4 +1,9 @@
set(LLVM_LINK_COMPONENTS bitreader object) set(LLVM_LINK_COMPONENTS
BitReader
Core
Object
Support
)
add_llvm_tool(llvm-nm add_llvm_tool(llvm-nm
llvm-nm.cpp llvm-nm.cpp

View File

@ -2,9 +2,8 @@ set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD} ${LLVM_TARGETS_TO_BUILD}
DebugInfo DebugInfo
MC MC
MCParser
MCDisassembler
Object Object
Support
) )
add_llvm_tool(llvm-objdump add_llvm_tool(llvm-objdump

View File

@ -1,7 +1,8 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD} ${LLVM_TARGETS_TO_BUILD}
bitreader Object
object) Support
)
add_llvm_tool(llvm-readobj add_llvm_tool(llvm-readobj
llvm-readobj.cpp llvm-readobj.cpp

View File

@ -1,4 +1,9 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support MC object RuntimeDyld JIT debuginfo) set(LLVM_LINK_COMPONENTS
DebugInfo
ExecutionEngine
RuntimeDyld
Support
)
add_llvm_tool(llvm-rtdyld add_llvm_tool(llvm-rtdyld
llvm-rtdyld.cpp llvm-rtdyld.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS object) set(LLVM_LINK_COMPONENTS
Object
Support
)
add_llvm_tool(llvm-size add_llvm_tool(llvm-size
llvm-size.cpp llvm-size.cpp

View File

@ -1,4 +1,8 @@
set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instrumentation scalaropts ipo) set(LLVM_LINK_COMPONENTS
Core
IPA
Support
)
add_llvm_tool(llvm-stress add_llvm_tool(llvm-stress
llvm-stress.cpp llvm-stress.cpp

View File

@ -6,6 +6,7 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
DebugInfo DebugInfo
Object Object
Support
) )
add_llvm_tool(llvm-symbolizer add_llvm_tool(llvm-symbolizer

View File

@ -1,6 +1,10 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD} ${LLVM_TARGETS_TO_BUILD}
ipo scalaropts linker bitreader bitwriter lto mcdisassembler vectorize) Core
LTO
MC
Support
)
add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" ) add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support object) set(LLVM_LINK_COMPONENTS
Object
Support
)
add_llvm_tool(macho-dump add_llvm_tool(macho-dump
macho-dump.cpp macho-dump.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS object) set(LLVM_LINK_COMPONENTS
Object
Support
)
add_llvm_utility(obj2yaml add_llvm_utility(obj2yaml
obj2yaml.cpp coff2yaml.cpp obj2yaml.cpp coff2yaml.cpp

View File

@ -1,4 +1,21 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} bitreader asmparser bitwriter irreader instrumentation scalaropts objcarcopts ipo vectorize) set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
Analysis
BitWriter
Core
IPA
IPO
IRReader
InstCombine
Instrumentation
MC
ObjCARCOpts
ScalarOpts
Support
Target
TransformUtils
Vectorize
)
add_llvm_tool(opt add_llvm_tool(opt
AnalysisWrappers.cpp AnalysisWrappers.cpp

View File

@ -1,4 +1,7 @@
set(LLVM_LINK_COMPONENTS object) set(LLVM_LINK_COMPONENTS
Object
Support
)
add_llvm_utility(yaml2obj add_llvm_utility(yaml2obj
yaml2obj.cpp yaml2obj.cpp

View File

@ -1,6 +1,8 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
Analysis Analysis
AsmParser AsmParser
Core
Support
) )
add_llvm_unittest(AnalysisTests add_llvm_unittest(AnalysisTests

View File

@ -1,6 +1,8 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
BitReader BitReader
BitWriter BitWriter
Core
Support
) )
add_llvm_unittest(BitcodeTests add_llvm_unittest(BitcodeTests

View File

@ -1,7 +1,6 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
asmprinter AsmPrinter
codegen Support
support
) )
set(CodeGenSources set(CodeGenSources

View File

@ -1,7 +1,5 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
debuginfo DebugInfo
object
support
) )
set(DebugInfoSources set(DebugInfoSources

View File

@ -1,5 +1,8 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
interpreter Core
ExecutionEngine
Interpreter
Support
) )
add_llvm_unittest(ExecutionEngineTests add_llvm_unittest(ExecutionEngineTests

View File

@ -1,8 +1,11 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
asmparser AsmParser
bitreader BitReader
bitwriter BitWriter
jit Core
ExecutionEngine
JIT
Support
nativecodegen nativecodegen
) )

View File

@ -1,8 +1,12 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
asmparser Analysis
bitreader Core
bitwriter ExecutionEngine
mcjit JIT
MCJIT
ScalarOpts
Support
Target
nativecodegen nativecodegen
) )

View File

@ -1,7 +1,9 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
asmparser Analysis
core AsmParser
ipa Core
IPA
Support
) )
set(IRSources set(IRSources

View File

@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
object Object
Support
) )
add_llvm_unittest(ObjectTests add_llvm_unittest(ObjectTests

View File

@ -1,5 +1,7 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
Core
Instrumentation Instrumentation
Support
) )
add_llvm_unittest(DebugIRTests add_llvm_unittest(DebugIRTests

View File

@ -1,4 +1,6 @@
set(LLVM_LINK_COMPONENTS set(LLVM_LINK_COMPONENTS
Core
Support
TransformUtils TransformUtils
) )