summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
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
commit0ddb3a4963996bbb6bace4c2af71d9e3094d7c16 (patch)
tree6571c95881461014160105a93f1e5b27414d2e82 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
parent9df6cc8f4f9005012ead32fa0be0e8a9c8089508 (diff)
downloadbcm5719-llvm-0ddb3a4963996bbb6bace4c2af71d9e3094d7c16.tar.gz
bcm5719-llvm-0ddb3a4963996bbb6bace4c2af71d9e3094d7c16.zip
ExecutionEngine interface to re-map addresses for engines that support it.
llvm-svn: 148264
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.h')
-rw-r--r--llvm/lib/ExecutionEngine/MCJIT/MCJIT.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
index 51e63d96e45..7f4ae77343d 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
+++ b/llvm/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
/// @{
OpenPOWER on IntegriCloud