summaryrefslogtreecommitdiff
path: root/include/llvm/ExecutionEngine
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-04-06 01:11:05 +0000
committerJim Grosbach <grosbach@apple.com>2011-04-06 01:11:05 +0000
commitc41ab789a052d7a8a4eacecfa1edd4af0d933990 (patch)
tree86b3c9b4438faa431f612324ecbfa189da4d612f /include/llvm/ExecutionEngine
parent2009c49a0b3fdd70e1c40e0297a4f9140759e318 (diff)
downloadllvm-c41ab789a052d7a8a4eacecfa1edd4af0d933990.tar.gz
llvm-c41ab789a052d7a8a4eacecfa1edd4af0d933990.tar.bz2
llvm-c41ab789a052d7a8a4eacecfa1edd4af0d933990.tar.xz
RuntimeDyld should use the memory manager API.
Start teaching the runtime Dyld interface to use the memory manager API for allocating space. Rather than mapping directly into the MachO object, we extract the payload for each object and copy it into a dedicated buffer allocated via the memory manager. For now, just do Segment64, so this works on x86_64, but not yet on ARM. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r--include/llvm/ExecutionEngine/RuntimeDyld.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h
index 6e18c7cfca..416acceee9 100644
--- a/include/llvm/ExecutionEngine/RuntimeDyld.h
+++ b/include/llvm/ExecutionEngine/RuntimeDyld.h
@@ -38,12 +38,12 @@ public:
// Allocate ActualSize bytes, or more, for the named function. Return
// a pointer to the allocated memory and update Size to reflect how much
// memory was acutally allocated.
- virtual uint64_t startFunctionBody(const char *Name, uintptr_t &Size) = 0;
+ virtual uint8_t *startFunctionBody(const char *Name, uintptr_t &Size) = 0;
// Mark the end of the function, including how much of the allocated
// memory was actually used.
- virtual void endFunctionBody(const char *Name, uint64_t FunctionStart,
- uint64_t FunctionEnd) = 0;
+ virtual void endFunctionBody(const char *Name, uint8_t *FunctionStart,
+ uint8_t *FunctionEnd) = 0;
};
class RuntimeDyld {