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)
commitab5ba51a6e4699cb5592947807d6035c6ac53386
treeb20eff1a24cf5d2901dddfb0f29f48a06436ddd2
parent8594ae85d5134489b8ab904ed4dbc846a722d2be
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.

llvm-svn: 168721
llvm/include/llvm/ExecutionEngine/SectionMemoryManager.h [moved from llvm/unittests/ExecutionEngine/MCJIT/SectionMemoryManager.h with 98% similarity]
llvm/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt
llvm/lib/ExecutionEngine/RuntimeDyld/SectionMemoryManager.cpp [moved from llvm/unittests/ExecutionEngine/MCJIT/SectionMemoryManager.cpp with 99% similarity]
llvm/unittests/ExecutionEngine/MCJIT/CMakeLists.txt
llvm/unittests/ExecutionEngine/MCJIT/MCJITMemoryManagerTest.cpp [new file with mode: 0644]
llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h