summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/MCJIT
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-16 23:50:55 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-16 23:50:55 +0000
commit020f4e861a9a32059f76377e787703c92ba55a98 (patch)
tree73b5d18c7b6491d94a4117ffe0aa3d98c44e6d1d /lib/ExecutionEngine/MCJIT
parent652ca2fe0c8bd406222d064937adc28b281d7b89 (diff)
downloadllvm-020f4e861a9a32059f76377e787703c92ba55a98.tar.gz
llvm-020f4e861a9a32059f76377e787703c92ba55a98.tar.bz2
llvm-020f4e861a9a32059f76377e787703c92ba55a98.tar.xz
ExecutionEngine interface to re-map addresses for engines that support it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/MCJIT')
-rw-r--r--lib/ExecutionEngine/MCJIT/MCJIT.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.h b/lib/ExecutionEngine/MCJIT/MCJIT.h
index 51e63d96e4..7f4ae77343 100644
--- a/lib/ExecutionEngine/MCJIT/MCJIT.h
+++ b/lib/ExecutionEngine/MCJIT/MCJIT.h
@@ -67,6 +67,14 @@ public:
///
virtual void *getPointerToNamedFunction(const std::string &Name,
bool AbortOnFailure = true);
+ /// mapSectionAddress - map a section to its target address space value.
+ /// Map the address of a JIT section as returned from the memory manager
+ /// to the address in the target process as the running code will see it.
+ /// This is the address which will be used for relocation resolution.
+ virtual void mapSectionAddress(void *LocalAddress, uint64_t TargetAddress) {
+ Dyld.mapSectionAddress(LocalAddress, TargetAddress);
+ }
+
/// @}
/// @name (Private) Registration Interfaces
/// @{