diff options
| author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-08-19 23:12:48 +0000 |
|---|---|---|
| committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-08-19 23:12:48 +0000 |
| commit | 71974b517550fbcf3b24dc1cf9f8de4a343c86de (patch) | |
| tree | 4aaf0ed7b659f176c1e6f2441fc269df64837bf0 /llvm/lib | |
| parent | 971a9f7eea31c6b27bf798cc8c39ede1dae8f0d2 (diff) | |
| download | bcm5719-llvm-71974b517550fbcf3b24dc1cf9f8de4a343c86de.tar.gz bcm5719-llvm-71974b517550fbcf3b24dc1cf9f8de4a343c86de.zip | |
[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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Orc/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt index 94d84b6a723..6c0881d4b25 100644 --- a/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt +++ b/llvm/lib/ExecutionEngine/Orc/CMakeLists.txt @@ -35,4 +35,5 @@ target_link_libraries(LLVMOrcJIT LLVMAnalysis LLVMBitReader LLVMBitWriter + LLVMPasses ) |

