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
This commit is contained in:
Sean Callanan 2013-04-09 01:13:08 +00:00
parent eb8b211e61
commit ec1c0b3faa
1 changed files with 1 additions and 1 deletions

View File

@ -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));