Put RTDyldMemoryManager into its own file, and make it linked into
authorFilip Pizlo <fpizlo@apple.com>
Tue, 21 May 2013 20:07:12 +0000 (20:07 +0000)
committerFilip Pizlo <fpizlo@apple.com>
Tue, 21 May 2013 20:07:12 +0000 (20:07 +0000)
commit876af64ac716ba557a25e136793b9343a24a35ad
tree7b148832eed8363d448ec7371960ee36072c244b
parent1441bf7a41b50075cf761cbc794ce3fd0b5762fc
Put RTDyldMemoryManager into its own file, and make it linked into
libExecutionEngine. Move method implementations that aren't specific to
allocation out of SectionMemoryManager and into RTDyldMemoryManager.

This is in preparation for exposing RTDyldMemoryManager through the C
API.

This is a fixed version of r182407. That revision broke builds because I
forgot to move the conditional includes of various POSIX headers from
SectionMemoryManager into RTDyldMemoryManager. Those includes are
necessary because of how getPointerToNamedFunction works around the
glibc libc_nonshared.a thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182411 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/RTDyldMemoryManager.h [new file with mode: 0644]
include/llvm/ExecutionEngine/RuntimeDyld.h
include/llvm/ExecutionEngine/SectionMemoryManager.h
lib/ExecutionEngine/CMakeLists.txt
lib/ExecutionEngine/MCJIT/SectionMemoryManager.cpp
lib/ExecutionEngine/RTDyldMemoryManager.cpp [new file with mode: 0644]
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp