aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/FreeBSD
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-15 03:55:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-15 03:55:45 +0000
commit4909b6c60c533a872f78121c6a7e1e3275e1faf4 (patch)
tree12a9e628a965597d13d3f07206c874c59de41497 /lib/System/FreeBSD
parentbdacd879578943efc98b75639cb8e7b4aab037f9 (diff)
downloadexternal_llvm-4909b6c60c533a872f78121c6a7e1e3275e1faf4.zip
external_llvm-4909b6c60c533a872f78121c6a7e1e3275e1faf4.tar.gz
external_llvm-4909b6c60c533a872f78121c6a7e1e3275e1faf4.tar.bz2
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
Diffstat (limited to 'lib/System/FreeBSD')
-rw-r--r--lib/System/FreeBSD/Memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/FreeBSD/Memory.cpp b/lib/System/FreeBSD/Memory.cpp
index 4ab1a5d..4f8dea5 100644
--- a/lib/System/FreeBSD/Memory.cpp
+++ b/lib/System/FreeBSD/Memory.cpp
@@ -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);