[lli] Add a '-dlopen <library-path>' option to lli.
authorLang Hames <lhames@gmail.com>
Fri, 14 Feb 2020 22:22:59 +0000 (14:22 -0800)
committerLang Hames <lhames@gmail.com>
Fri, 14 Feb 2020 23:01:40 +0000 (15:01 -0800)
commitb7be6b480b8681902e4b7aa4eb479ccedbde1990
tree44d470f41ef9c007d15a8db0f22910107b6c9cc0
parent1228d42ddab832a236563515da5e6de3312fd93c
[lli] Add a '-dlopen <library-path>' option to lli.

Passing '-dlopen <library-path>' to lli will cause the specified library to be
loaded (via llvm::sys::DynamicLibrary::LoadLibraryPermanently) before JIT'd code
is executed, making the library's symbols accessible to JIT'd code.
llvm/tools/lli/lli.cpp