diff options
author | Lang Hames <lhames@gmail.com> | 2013-12-07 03:05:51 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2013-12-07 03:05:51 +0000 |
commit | e7777cdc643d15671c5a7bc7c24753820298c100 (patch) | |
tree | 474612a707de090c7ca2651c5d1d391c2c855fff /include/llvm/ExecutionEngine/RuntimeDyld.h | |
parent | eb2934e78230f0a03db4b35b33ba9eda77755967 (diff) | |
download | llvm-e7777cdc643d15671c5a7bc7c24753820298c100.tar.gz llvm-e7777cdc643d15671c5a7bc7c24753820298c100.tar.bz2 llvm-e7777cdc643d15671c5a7bc7c24753820298c100.tar.xz |
Add support for archives and object file caching under MCJIT.
Patch by Andy Kaylor, with minor edits to resolve merge conflicts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine/RuntimeDyld.h')
-rw-r--r-- | include/llvm/ExecutionEngine/RuntimeDyld.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h index b8324387bb..fd9f338669 100644 --- a/include/llvm/ExecutionEngine/RuntimeDyld.h +++ b/include/llvm/ExecutionEngine/RuntimeDyld.h @@ -21,6 +21,10 @@ namespace llvm { +namespace object { + class ObjectFile; +} + class RuntimeDyldImpl; class ObjectImage; @@ -46,6 +50,12 @@ public: /// failure, the input buffer will be deleted. ObjectImage *loadObject(ObjectBuffer *InputBuffer); + /// Prepare the referenced object file for execution. + /// Ownership of the input object is transferred to the ObjectImage + /// instance returned from this function if successful. In the case of load + /// failure, the input object will be deleted. + ObjectImage *loadObject(object::ObjectFile *InputObject); + /// Get the address of our local copy of the symbol. This may or may not /// be the address used for relocation (clients can copy the data around /// and resolve relocatons based on where they put it). |