[ORC] Remove the automagic Main JITDylib fram ExecutionSession.
authorLang Hames <lhames@gmail.com>
Thu, 5 Dec 2019 06:45:38 +0000 (22:45 -0800)
committerLang Hames <lhames@gmail.com>
Thu, 5 Dec 2019 09:36:49 +0000 (01:36 -0800)
commit4fc68b9b7f3e07ea4425c6111e1a9455cf4aa322
treea34b36b9bd3fc33df70ba3f6fcef2f17785ce69c
parent76a5c8421e04b246892157fe18f1c082c908c5e9
[ORC] Remove the automagic Main JITDylib fram ExecutionSession.

This patch removes the magic "main" JITDylib from ExecutionEngine. The main
JITDylib was created automatically at ExecutionSession construction time, and
all subsequently created JITDylibs were added to the main JITDylib's
links-against list by default. This saves a couple of lines of boilerplate for
simple JIT setups, but this isn't worth introducing magical behavior for.

ORCv2 clients should now construct their own main JITDylib using
ExecutionSession::createJITDylib and set up its linkages manually using
JITDylib::setSearchOrder (or related methods in JITDylib).
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/KaleidoscopeJIT.h
llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/KaleidoscopeJIT.h
llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp
llvm/include/llvm/ExecutionEngine/Orc/Core.h
llvm/lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
llvm/lib/ExecutionEngine/Orc/Core.cpp
llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
llvm/tools/llvm-jitlink/llvm-jitlink.cpp
llvm/tools/llvm-jitlink/llvm-jitlink.h