forked from OSchip/llvm-project
Fix the interface to ReleaseRWX to take MemoryBlock& not Memory&
llvm-svn: 16356
This commit is contained in:
parent
f11216d24f
commit
0de7bc1c3d
|
@ -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…
Reference in New Issue