mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-03-10 22:47:18 +00:00
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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user