Fix the interface to ReleaseRWX to take MemoryBlock& not Memory&

llvm-svn: 16356
This commit is contained in:
Reid Spencer 2004-09-15 03:55:45 +00:00
parent f11216d24f
commit 0de7bc1c3d
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);