Moving SectionMemoryManager into RuntimeDyld and adding unit tests for it.
authorAndrew Kaylor <andrew.kaylor@intel.com>
Tue, 27 Nov 2012 19:42:02 +0000 (19:42 +0000)
committerAndrew Kaylor <andrew.kaylor@intel.com>
Tue, 27 Nov 2012 19:42:02 +0000 (19:42 +0000)
commit927ba6a0b36b8219955a657545fcb1c863734993
tree25b8bf6ceac6ae3009e7e9105b1f8f31474715a4
parent3c1cc3888bbfbb568dad296f577c63eba8999a72
Moving SectionMemoryManager into RuntimeDyld and adding unit tests for it.

The SectionMemoryManager now supports (and requires) applying section-specific page permissions.  Clients using this memory manager must call either MCJIT::finalizeObject() or SectionMemoryManager::applyPermissions() before executing JITed code.

See r168718 for changes from the previous implementation.

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