mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-24 13:15:36 +00:00
Fix typo: sterror -> strerror
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f51c8ea9de
commit
714470716f
@ -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…
x
Reference in New Issue
Block a user