Skip to content

Commit 71974b5

Browse files
[cmake] Link in LLVMPasses due to dependency by LLVMOrcJIT; NFC
Summary: rL367756 (f5c40cb) increases the dependency of LLVMOrcJIT on LLVMPasses. In particular, symbols defined in LLVMPasses that are referenced by the destructor of `PassBuilder` are now referenced by LLVMOrcJIT through `Speculation.cpp.o`. We believe that referencing symbols defined in LLVMPasses in the destructor of `PassBuilder` is valid, and that adding to the set of such symbols is legitimate. To support such cases, this patch adds LLVMPasses to the set of libraries being linked when linking in LLVMOrcJIT causes such symbols from LLVMPasses to be referenced. Reviewers: Whitney, anhtuyen, pree-jackie Reviewed By: pree-jackie Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D66441 llvm-svn: 369310
1 parent 971a9f7 commit 71974b5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

llvm/lib/ExecutionEngine/Orc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ target_link_libraries(LLVMOrcJIT
3535
LLVMAnalysis
3636
LLVMBitReader
3737
LLVMBitWriter
38+
LLVMPasses
3839
)

llvm/tools/lli/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ set(LLVM_LINK_COMPONENTS
1212
MCJIT
1313
Object
1414
OrcJIT
15+
Passes
1516
RuntimeDyld
1617
SelectionDAG
1718
Support

llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS
44
ExecutionEngine
55
Object
66
OrcJIT
7+
Passes
78
RuntimeDyld
89
Support
910
native

0 commit comments

Comments
 (0)