mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 08:24:12 +00:00
Fix the interface to ReleaseRWX to take MemoryBlock& not Memory&
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdacd87957
commit
4909b6c60c
@ -43,7 +43,7 @@ MemoryBlock Memory::AllocateRWX(unsigned NumBytes) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void Memory::ReleaseRWX(Memory& M) {
|
||||
void Memory::ReleaseRWX(MemoryBlock& M) {
|
||||
if (M.Address == 0 || M.Size == 0) return;
|
||||
if (0 != munmap(M.Address, M.Size)) {
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
|
@ -43,7 +43,7 @@ MemoryBlock Memory::AllocateRWX(unsigned NumBytes) {
|
||||
return result;
|
||||
}
|
||||
|
||||
void Memory::ReleaseRWX(Memory& M) {
|
||||
void Memory::ReleaseRWX(MemoryBlock& M) {
|
||||
if (M.Address == 0 || M.Size == 0) return;
|
||||
if (0 != munmap(M.Address, M.Size)) {
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
|
Loading…
x
Reference in New Issue
Block a user