Skip to content

Commit b5c4b87

Browse files
committed
[CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt.
llvm-svn: 196908
1 parent db0768c commit b5c4b87

File tree

48 files changed

+291
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+291
-57
lines changed

llvm/examples/BrainF/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter)
1+
set(LLVM_LINK_COMPONENTS
2+
BitWriter
3+
Core
4+
ExecutionEngine
5+
JIT
6+
Support
7+
nativecodegen
8+
)
29

310
add_llvm_example(BrainF
411
BrainF.cpp

llvm/examples/ExceptionDemo/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
set(LLVM_LINK_COMPONENTS jit mcjit nativecodegen)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
ExecutionEngine
4+
MCJIT
5+
Support
6+
nativecodegen
7+
)
8+
29
set(LLVM_REQUIRES_EH 1)
310

411
add_llvm_example(ExceptionDemo

llvm/examples/Fibonacci/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
ExecutionEngine
4+
Interpreter
5+
JIT
6+
Support
7+
nativecodegen
8+
)
29

310
add_llvm_example(Fibonacci
411
fibonacci.cpp

llvm/examples/HowToUseJIT/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
ExecutionEngine
4+
Interpreter
5+
JIT
6+
Support
7+
nativecodegen
8+
)
29

310
add_llvm_example(HowToUseJIT
411
HowToUseJIT.cpp

llvm/examples/Kaleidoscope/Chapter3/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS core)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
Support
4+
)
25

36
add_llvm_example(Kaleidoscope-Ch3
47
toy.cpp

llvm/examples/Kaleidoscope/Chapter4/CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
set(LLVM_LINK_COMPONENTS core jit interpreter native)
1+
set(LLVM_LINK_COMPONENTS
2+
Analysis
3+
Core
4+
ExecutionEngine
5+
InstCombine
6+
JIT
7+
ScalarOpts
8+
Support
9+
nativecodegen
10+
)
211

312
add_llvm_example(Kaleidoscope-Ch4
413
toy.cpp

llvm/examples/Kaleidoscope/Chapter5/CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
set(LLVM_LINK_COMPONENTS core jit interpreter native)
1+
set(LLVM_LINK_COMPONENTS
2+
Analysis
3+
Core
4+
ExecutionEngine
5+
InstCombine
6+
JIT
7+
ScalarOpts
8+
Support
9+
nativecodegen
10+
)
211

312
add_llvm_example(Kaleidoscope-Ch5
413
toy.cpp

llvm/examples/Kaleidoscope/Chapter6/CMakeLists.txt

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
set(LLVM_LINK_COMPONENTS core jit interpreter native)
1+
set(LLVM_LINK_COMPONENTS
2+
Analysis
3+
Core
4+
ExecutionEngine
5+
InstCombine
6+
JIT
7+
ScalarOpts
8+
Support
9+
nativecodegen
10+
)
211

312
add_llvm_example(Kaleidoscope-Ch6
413
toy.cpp

llvm/examples/Kaleidoscope/Chapter7/CMakeLists.txt

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
set(LLVM_LINK_COMPONENTS core jit interpreter native)
1+
set(LLVM_LINK_COMPONENTS
2+
Analysis
3+
Core
4+
ExecutionEngine
5+
InstCombine
6+
JIT
7+
ScalarOpts
8+
Support
9+
TransformUtils
10+
nativecodegen
11+
)
12+
213
set(LLVM_REQUIRES_RTTI 1)
314

415
add_llvm_example(Kaleidoscope-Ch7

llvm/examples/ModuleMaker/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set(LLVM_LINK_COMPONENTS bitwriter)
1+
set(LLVM_LINK_COMPONENTS
2+
BitWriter
3+
Core
4+
Support
5+
)
26

37
add_llvm_example(ModuleMaker
48
ModuleMaker.cpp

llvm/examples/ParallelJIT/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
ExecutionEngine
4+
Interpreter
5+
JIT
6+
Support
7+
nativecodegen
8+
)
29

310
add_llvm_example(ParallelJIT
411
ParallelJIT.cpp

llvm/tools/bugpoint/CMakeLists.txt

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
set(LLVM_LINK_COMPONENTS asmparser instrumentation scalaropts ipo
2-
linker bitreader bitwriter irreader vectorize objcarcopts)
1+
set(LLVM_LINK_COMPONENTS
2+
Analysis
3+
BitWriter
4+
Core
5+
IPA
6+
IPO
7+
IRReader
8+
InstCombine
9+
Instrumentation
10+
Linker
11+
ObjCARCOpts
12+
ScalarOpts
13+
Support
14+
Target
15+
TransformUtils
16+
Vectorize
17+
)
318

419
add_llvm_tool(bugpoint
520
BugDriver.cpp

llvm/tools/llc/CMakeLists.txt

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} bitreader asmparser irreader)
1+
set(LLVM_LINK_COMPONENTS
2+
${LLVM_TARGETS_TO_BUILD}
3+
AsmPrinter
4+
CodeGen
5+
Core
6+
IRReader
7+
MC
8+
ScalarOpts
9+
SelectionDAG
10+
Support
11+
Target
12+
)
213

314
add_llvm_tool(llc
415
llc.cpp

llvm/tools/lli/CMakeLists.txt

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
add_subdirectory(ChildTarget)
22

3-
set(LLVM_LINK_COMPONENTS mcjit jit interpreter nativecodegen bitreader asmparser irreader selectiondag native instrumentation)
3+
set(LLVM_LINK_COMPONENTS
4+
CodeGen
5+
Core
6+
ExecutionEngine
7+
IRReader
8+
Instrumentation
9+
Interpreter
10+
JIT
11+
MCJIT
12+
SelectionDAG
13+
Support
14+
native
15+
)
416

517
if( LLVM_USE_OPROFILE )
618
set(LLVM_LINK_COMPONENTS

llvm/tools/llvm-ar/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS support object bitreader)
1+
set(LLVM_LINK_COMPONENTS
2+
Object
3+
Support
4+
)
25

36
add_llvm_tool(llvm-ar
47
llvm-ar.cpp

llvm/tools/llvm-as/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set(LLVM_LINK_COMPONENTS asmparser bitwriter)
1+
set(LLVM_LINK_COMPONENTS
2+
AsmParser
3+
BitWriter
4+
Core
5+
Support
6+
)
27

38
add_llvm_tool(llvm-as
49
llvm-as.cpp

llvm/tools/llvm-bcanalyzer/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS bitreader)
1+
set(LLVM_LINK_COMPONENTS
2+
BitReader
3+
Support
4+
)
25

36
add_llvm_tool(llvm-bcanalyzer
47
llvm-bcanalyzer.cpp

llvm/tools/llvm-c-test/CMakeLists.txt

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
set(LLVM_LINK_COMPONENTS all)
1+
set(LLVM_LINK_COMPONENTS
2+
${LLVM_TARGETS_TO_BUILD}
3+
BitReader
4+
Core
5+
MCDisassembler
6+
Object
7+
Target
8+
)
29

310
if (LLVM_COMPILER_IS_GCC_COMPATIBLE)
411
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wstrict-prototypes")

llvm/tools/llvm-diff/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set(LLVM_LINK_COMPONENTS support asmparser bitreader irreader)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
IRReader
4+
Support
5+
)
26

37
add_llvm_tool(llvm-diff
48
llvm-diff.cpp

llvm/tools/llvm-dis/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set(LLVM_LINK_COMPONENTS bitreader analysis)
1+
set(LLVM_LINK_COMPONENTS
2+
BitReader
3+
Core
4+
Support
5+
)
26

37
add_llvm_tool(llvm-dis
48
llvm-dis.cpp

llvm/tools/llvm-dwarfdump/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set(LLVM_LINK_COMPONENTS
22
DebugInfo
33
Object
4+
Support
45
)
56

67
add_llvm_tool(llvm-dwarfdump

llvm/tools/llvm-extract/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
set(LLVM_LINK_COMPONENTS asmparser ipo bitreader bitwriter irreader)
1+
set(LLVM_LINK_COMPONENTS
2+
BitWriter
3+
Core
4+
IPO
5+
IRReader
6+
Support
7+
)
28

39
add_llvm_tool(llvm-extract
410
llvm-extract.cpp

llvm/tools/llvm-link/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
set(LLVM_LINK_COMPONENTS linker bitreader bitwriter asmparser irreader)
1+
set(LLVM_LINK_COMPONENTS
2+
BitWriter
3+
Core
4+
IRReader
5+
Linker
6+
Support
7+
)
28

39
add_llvm_tool(llvm-link
410
llvm-link.cpp

llvm/tools/llvm-lto/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} lto support)
1+
set(LLVM_LINK_COMPONENTS
2+
${LLVM_TARGETS_TO_BUILD}
3+
Core
4+
LTO
5+
MC
6+
Support
7+
)
28

39
add_llvm_tool(llvm-lto
410
llvm-lto.cpp

llvm/tools/llvm-mc/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support MC MCParser MCDisassembler)
1+
set(LLVM_LINK_COMPONENTS
2+
${LLVM_TARGETS_TO_BUILD}
3+
MC
4+
MCParser
5+
Support
6+
)
27

38
add_llvm_tool(llvm-mc
49
llvm-mc.cpp

llvm/tools/llvm-nm/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set(LLVM_LINK_COMPONENTS bitreader object)
1+
set(LLVM_LINK_COMPONENTS
2+
BitReader
3+
Core
4+
Object
5+
Support
6+
)
27

38
add_llvm_tool(llvm-nm
49
llvm-nm.cpp

llvm/tools/llvm-objdump/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ set(LLVM_LINK_COMPONENTS
22
${LLVM_TARGETS_TO_BUILD}
33
DebugInfo
44
MC
5-
MCParser
6-
MCDisassembler
75
Object
6+
Support
87
)
98

109
add_llvm_tool(llvm-objdump

llvm/tools/llvm-readobj/CMakeLists.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
set(LLVM_LINK_COMPONENTS
22
${LLVM_TARGETS_TO_BUILD}
3-
bitreader
4-
object)
3+
Object
4+
Support
5+
)
56

67
add_llvm_tool(llvm-readobj
78
llvm-readobj.cpp

llvm/tools/llvm-rtdyld/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} support MC object RuntimeDyld JIT debuginfo)
1+
set(LLVM_LINK_COMPONENTS
2+
DebugInfo
3+
ExecutionEngine
4+
RuntimeDyld
5+
Support
6+
)
27

38
add_llvm_tool(llvm-rtdyld
49
llvm-rtdyld.cpp

llvm/tools/llvm-size/CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
set(LLVM_LINK_COMPONENTS object)
1+
set(LLVM_LINK_COMPONENTS
2+
Object
3+
Support
4+
)
25

36
add_llvm_tool(llvm-size
47
llvm-size.cpp

llvm/tools/llvm-stress/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instrumentation scalaropts ipo)
1+
set(LLVM_LINK_COMPONENTS
2+
Core
3+
IPA
4+
Support
5+
)
26

37
add_llvm_tool(llvm-stress
48
llvm-stress.cpp

llvm/tools/llvm-symbolizer/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
set(LLVM_LINK_COMPONENTS
77
DebugInfo
88
Object
9+
Support
910
)
1011

1112
add_llvm_tool(llvm-symbolizer

0 commit comments

Comments
 (0)