[LLVMdev] how to call the function in hosting code from JITted IR code..?
waxiadao@gmail.com
waxiadao at gmail.com
Wed May 28 08:00:57 PDT 2014
Hello,
1.If you're on Windows,particularly x86 one,you have to check whether the
function test1 is renamed to _test1 in your executable.
2.You have to append parameters like -fpic -rdynamic to make sure that your
function is to be exported.And if you don't want to do so,you may have to
call llvm::sys::DynamicLibrary::AddSymbol() or create your own
MemoryManager.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140528/a83491c6/attachment.html>
More information about the llvm-dev
mailing list