]> granicus.if.org Git - llvm/commitdiff
[cmake] Link in LLVMPasses due to dependency by LLVMOrcJIT; NFC
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Mon, 19 Aug 2019 23:12:48 +0000 (23:12 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Mon, 19 Aug 2019 23:12:48 +0000 (23:12 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Orc/CMakeLists.txt
tools/lli/CMakeLists.txt
unittests/ExecutionEngine/Orc/CMakeLists.txt

index 94d84b6a7230e5f1c6e2f1e55a407f1ed5397f93..6c0881d4b25a8604211b846f63146c0f51598c26 100644 (file)
@@ -35,4 +35,5 @@ target_link_libraries(LLVMOrcJIT
   LLVMAnalysis
   LLVMBitReader
   LLVMBitWriter
+  LLVMPasses
   )
index 42f6c2b2ede4b24d933454738de7c3775082e2aa..476c09229e63a07ffab2e86a31d29fa5ca230c0d 100644 (file)
@@ -12,6 +12,7 @@ set(LLVM_LINK_COMPONENTS
   MCJIT
   Object
   OrcJIT
+  Passes
   RuntimeDyld
   SelectionDAG
   Support
index 76b18fd1ba9aca518ddf1aebf0f06f92c9432648..945c9926d26e7b314e186d8934dd71cbf49c2f4e 100644 (file)
@@ -4,6 +4,7 @@ set(LLVM_LINK_COMPONENTS
   ExecutionEngine
   Object
   OrcJIT
+  Passes
   RuntimeDyld
   Support
   native