forked from OSchip/llvm-project
parent
fda2fe9f1e
commit
55a96ee8f5
|
@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
|
|||
void Memory::ReleaseRWX(Memory& M) {
|
||||
if (M.Address == 0 || M.AllocSize == 0) return;
|
||||
if (0 != munmap(M.Address, M.AllocSize)) {
|
||||
throw std::string("Can't release RWX Memory: ") + sterror(errno);
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
|
|||
void Memory::ReleaseRWX(Memory& M) {
|
||||
if (M.Address == 0 || M.AllocSize == 0) return;
|
||||
if (0 != munmap(M.Address, M.AllocSize)) {
|
||||
throw std::string("Can't release RWX Memory: ") + sterror(errno);
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
|
|||
void Memory::ReleaseRWX(Memory& M) {
|
||||
if (M.Address == 0 || M.AllocSize == 0) return;
|
||||
if (0 != munmap(M.Address, M.AllocSize)) {
|
||||
throw std::string("Can't release RWX Memory: ") + sterror(errno);
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
|
|||
void Memory::ReleaseRWX(Memory& M) {
|
||||
if (M.Address == 0 || M.AllocSize == 0) return;
|
||||
if (0 != munmap(M.Address, M.AllocSize)) {
|
||||
throw std::string("Can't release RWX Memory: ") + sterror(errno);
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ void* Memory::AllocateRWX(Memory& M, unsigned NumBytes) {
|
|||
void Memory::ReleaseRWX(Memory& M) {
|
||||
if (M.Address == 0 || M.AllocSize == 0) return;
|
||||
if (0 != munmap(M.Address, M.AllocSize)) {
|
||||
throw std::string("Can't release RWX Memory: ") + sterror(errno);
|
||||
throw std::string("Can't release RWX Memory: ") + strerror(errno);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue