RuntimeDyld should use the memory manager API.
authorJim Grosbach <grosbach@apple.com>
Wed, 6 Apr 2011 01:11:05 +0000 (01:11 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 6 Apr 2011 01:11:05 +0000 (01:11 +0000)
commitc41ab789a052d7a8a4eacecfa1edd4af0d933990
tree86b3c9b4438faa431f612324ecbfa189da4d612f
parent2009c49a0b3fdd70e1c40e0297a4f9140759e318
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
include/llvm/ExecutionEngine/RuntimeDyld.h
lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
tools/llvm-rtdyld/llvm-rtdyld.cpp