diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-18 07:54:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-18 07:54:21 +0000 |
commit | bc4707a2554ac04ba006bf70035e7bc7270236a9 (patch) | |
tree | de53bff1fc81864b96c267cd930d7ea35a2dad3e /lib/ExecutionEngine/JIT/JITMemoryManager.cpp | |
parent | 057d0c35358841aba449d203622416431163cb83 (diff) |
Preliminary support for systems which require changing JIT memory regions privilege from read / write to read / executable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITMemoryManager.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp index d2d5c2f8e0..804e88df4c 100644 --- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp +++ b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp @@ -370,7 +370,11 @@ namespace { DefaultJITMemoryManager::DefaultJITMemoryManager() { // Allocate a 16M block of memory for functions. +#if defined(__APPLE__) && defined(__arm__) + sys::MemoryBlock MemBlock = getNewMemoryBlock(4 << 20); +#else sys::MemoryBlock MemBlock = getNewMemoryBlock(16 << 20); +#endif unsigned char *MemBase = static_cast<unsigned char*>(MemBlock.base()); |