diff options
| author | Chris Bieneman <chris.bieneman@me.com> | 2019-10-09 14:27:52 -0700 |
|---|---|---|
| committer | Chris Bieneman <chris.bieneman@me.com> | 2019-10-29 17:31:28 -0700 |
| commit | a34680a33eb1caa5e224a9432e9f3e643824dc2d (patch) | |
| tree | 11483618a9a67f1403e0fd8b22a1a9d12c9779b4 /llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp | |
| parent | cbb3104b1c8ea93b6749043184a8d8952b8b2747 (diff) | |
| download | llvm-a34680a33eb1caa5e224a9432e9f3e643824dc2d.zip llvm-a34680a33eb1caa5e224a9432e9f3e643824dc2d.tar.gz llvm-a34680a33eb1caa5e224a9432e9f3e643824dc2d.tar.bz2 | |
Break out OrcError and RPC
Summary:
When createing an ORC remote JIT target the current library split forces the target process to link large portions of LLVM (Core, Execution Engine, JITLink, Object, MC, Passes, RuntimeDyld, Support, Target, and TransformUtils). This occurs because the ORC RPC interfaces rely on the static globals the ORC Error types require, which starts a cycle of pulling in more and more.
This patch breaks the ORC RPC Error implementations out into an "OrcError" library which only depends on LLVM Support. It also pulls the ORC RPC headers into their own subdirectory.
With this patch code can include the Orc/RPC/*.h headers and will only incur link dependencies on LLVMOrcError and LLVMSupport.
Reviewers: lhames
Reviewed By: lhames
Subscribers: mgorny, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68732
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp')
| -rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp index 2a0ed07..734511b 100644 --- a/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/ExecutionEngine/Orc/RPCUtils.h" +#include "llvm/ExecutionEngine/Orc/RPC/RPCUtils.h" #include "QueueChannel.h" #include "gtest/gtest.h" |
