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:
Reid Spencer 2004-09-15 03:55:45 +00:00
parent bdacd87957
commit 4909b6c60c
2 changed files with 2 additions and 2 deletions

View File

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

View File

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