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 | 5cc53c34c366fa8b6e389c7c1751c50c0f64041a (patch) | |
tree | 00effcc2f02134686e78be25d8938c46d4ed3992 /llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp | |
parent | 933b392f657c6abcc6bca68bc14cf77301c6d4cc (diff) | |
download | bcm5719-llvm-5cc53c34c366fa8b6e389c7c1751c50c0f64041a.tar.gz bcm5719-llvm-5cc53c34c366fa8b6e389c7c1751c50c0f64041a.zip |
Preliminary support for systems which require changing JIT memory regions privilege from read / write to read / executable.
llvm-svn: 56303
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp index d2d5c2f8e0d..804e88df4ca 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITMemoryManager.cpp +++ b/llvm/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()); |