summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/System/AIX/Memory.cpp2
-rw-r--r--llvm/lib/System/Cygwin/Memory.cpp2
-rw-r--r--llvm/lib/System/FreeBSD/Memory.cpp2
-rw-r--r--llvm/lib/System/Interix/Memory.cpp2
-rw-r--r--llvm/lib/System/SunOS/Memory.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/System/AIX/Memory.cpp b/llvm/lib/System/AIX/Memory.cpp
index b4e9a9f5b48..6ba57de40a6 100644
--- a/llvm/lib/System/AIX/Memory.cpp
+++ b/llvm/lib/System/AIX/Memory.cpp
@@ -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);
}
}
diff --git a/llvm/lib/System/Cygwin/Memory.cpp b/llvm/lib/System/Cygwin/Memory.cpp
index 4c0123b7f92..58e660c2083 100644
--- a/llvm/lib/System/Cygwin/Memory.cpp
+++ b/llvm/lib/System/Cygwin/Memory.cpp
@@ -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);
}
}
diff --git a/llvm/lib/System/FreeBSD/Memory.cpp b/llvm/lib/System/FreeBSD/Memory.cpp
index 16fa849c55c..eeb22e910bf 100644
--- a/llvm/lib/System/FreeBSD/Memory.cpp
+++ b/llvm/lib/System/FreeBSD/Memory.cpp
@@ -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);
}
}
diff --git a/llvm/lib/System/Interix/Memory.cpp b/llvm/lib/System/Interix/Memory.cpp
index b0791ef7d14..b79f8b62680 100644
--- a/llvm/lib/System/Interix/Memory.cpp
+++ b/llvm/lib/System/Interix/Memory.cpp
@@ -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);
}
}
diff --git a/llvm/lib/System/SunOS/Memory.cpp b/llvm/lib/System/SunOS/Memory.cpp
index dd15f13495b..d6d871aa715 100644
--- a/llvm/lib/System/SunOS/Memory.cpp
+++ b/llvm/lib/System/SunOS/Memory.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud