aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-04-09 01:13:08 +0000
committerSean Callanan <scallanan@apple.com>2013-04-09 01:13:08 +0000
commitec1c0b3faa243f79464e18a3b0e09735192d7cc0 (patch)
tree2b3408700635a1ab0e6427718e0ce242dcadade5
parenteb8b211e61bb4f481e47c64c02250efaa56f1b4b (diff)
downloadllvm-ec1c0b3faa243f79464e18a3b0e09735192d7cc0.zip
llvm-ec1c0b3faa243f79464e18a3b0e09735192d7cc0.tar.gz
llvm-ec1c0b3faa243f79464e18a3b0e09735192d7cc0.tar.bz2
Fixed the way we allocate executable memory on
behalf of the JIT. We don't need it to be writable since we are using special APIs to write into it. <rdar://problem/13599185> llvm-svn: 179077
-rw-r--r--lldb/source/Expression/IRExecutionUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index dba361b..0b61a9a 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -490,7 +490,7 @@ IRExecutionUnit::MemoryManager::allocateCodeSection(uintptr_t Size,
uint8_t *return_value = m_default_mm_ap->allocateCodeSection(Size, Alignment, SectionID);
m_parent.m_records.push_back(AllocationRecord((uintptr_t)return_value,
- lldb::ePermissionsReadable | lldb::ePermissionsWritable | lldb::ePermissionsExecutable,
+ lldb::ePermissionsReadable | lldb::ePermissionsExecutable,
Size,
Alignment,
SectionID));