diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-04-08 17:31:24 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-04-08 17:31:24 +0000 |
commit | b027105fa50c864d44873dc78daafb3db3ec9c14 (patch) | |
tree | 921424701f964bbe027bef5b1b698d8945c1698d /include/llvm/ExecutionEngine | |
parent | 084b5df5aedc83af0588ae8c2145e4f98faf1d8f (diff) | |
download | external_llvm-b027105fa50c864d44873dc78daafb3db3ec9c14.zip external_llvm-b027105fa50c864d44873dc78daafb3db3ec9c14.tar.gz external_llvm-b027105fa50c864d44873dc78daafb3db3ec9c14.tar.bz2 |
Refactor MCJIT 32-bit section loading.
Teach 32-bit section loading to use the Memory Manager interface, just like
the 64-bit loading does. Tidy up a few other things here and there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r-- | include/llvm/ExecutionEngine/RuntimeDyld.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h index 416acce..87ba119 100644 --- a/include/llvm/ExecutionEngine/RuntimeDyld.h +++ b/include/llvm/ExecutionEngine/RuntimeDyld.h @@ -58,7 +58,10 @@ public: ~RuntimeDyld(); bool loadObject(MemoryBuffer *InputBuffer); - uint64_t getSymbolAddress(StringRef Name); + // 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). + void *getSymbolAddress(StringRef Name); void reassignSymbolAddress(StringRef Name, uint64_t Addr); // FIXME: Should be parameterized to get the memory block associated with // a particular loaded object. |