[llvm-commits] [PATCH] add C interface for symbol search

Simon Wunderlich simon.wunderlich at s2003.tu-chemnitz.de
Tue Jul 22 13:44:27 PDT 2008

Adds wrapper functions for the ExecutionEngine functions to the C-interface:

* LazyCompilationDisabled()
* isLazyCompilationDisabled()
* DisableLazyCompilation()
* isSymbolSearchingDisabled()
* InstallLazyFunctionCreator()

The FunctionCreator type has been changed to use C-style "const char *" instead
of "const std::string &" to simplify the Binding. I could not see benefit in
using "const std::string &", and binding would require ugly stub functions
otherwise. This is hopefully acceptable for this fairly new feature.

Signed-off-by: Simon Wunderlich <siwu at hrz.tu-chemnitz.de>

 include/llvm-c/ExecutionEngine.h                |   11 +++++++++++
 include/llvm/ExecutionEngine/ExecutionEngine.h  |    4 ++--
 lib/ExecutionEngine/ExecutionEngineBindings.cpp |   21 +++++++++++++++++++++
 lib/ExecutionEngine/JIT/Intercept.cpp           |    4 ++--
 4 files changed, 36 insertions(+), 4 deletions(-)

(Please CC me in replies, as i'm not subscribed to the list. Thanks!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-c-interface-for-symbol-search.patch
Type: text/x-diff
Size: 5307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080722/54c170fd/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080722/54c170fd/attachment.sig>

More information about the llvm-commits mailing list