diff options
author | Lang Hames <lhames@gmail.com> | 2019-08-13 16:05:18 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2019-08-13 16:05:18 +0000 |
commit | 52a34a78d9aff1bb5e66e7c32490229ea177e075 (patch) | |
tree | 15ee224459a7c3aed11d4868e4501946dfdd530c /llvm/tools/llvm-jitlink | |
parent | 76945821b9cad3baebad5c36ae00ab173f8529c6 (diff) | |
download | bcm5719-llvm-52a34a78d9aff1bb5e66e7c32490229ea177e075.tar.gz bcm5719-llvm-52a34a78d9aff1bb5e66e7c32490229ea177e075.zip |
[ORC] Refactor definition-generation, add a generator for static libraries.
This patch replaces the JITDylib::DefinitionGenerator typedef with a class of
the same name, and adds support for attaching a sequence of DefinitionGeneration
objects to a JITDylib.
This patch also adds a new definition generator,
StaticLibraryDefinitionGenerator, that can be used to add symbols fom a static
library to a JITDylib. An object from the static library will be added (via
a supplied ObjectLayer reference) whenever a symbol from that object is
referenced.
To enable testing, lli is updated to add support for the --extra-archive option
when running in -jit-kind=orc-lazy mode.
llvm-svn: 368707
Diffstat (limited to 'llvm/tools/llvm-jitlink')
-rw-r--r-- | llvm/tools/llvm-jitlink/llvm-jitlink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp index eff2ec18bc5..79c185a926e 100644 --- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp +++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp @@ -380,7 +380,7 @@ Error loadProcessSymbols(Session &S) { auto FilterMainEntryPoint = [InternedEntryPointName](SymbolStringPtr Name) { return Name != InternedEntryPointName; }; - S.ES.getMainJITDylib().setGenerator( + S.ES.getMainJITDylib().addGenerator( ExitOnErr(orc::DynamicLibrarySearchGenerator::GetForCurrentProcess( GlobalPrefix, FilterMainEntryPoint))); |