From 4909b6c60c533a872f78121c6a7e1e3275e1faf4 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 15 Sep 2004 03:55:45 +0000 Subject: [PATCH] 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 --- lib/System/Cygwin/Memory.cpp | 2 +- lib/System/FreeBSD/Memory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/System/Cygwin/Memory.cpp b/lib/System/Cygwin/Memory.cpp index 2392e71e0db..87d29dec466 100644 --- a/lib/System/Cygwin/Memory.cpp +++ b/lib/System/Cygwin/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); diff --git a/lib/System/FreeBSD/Memory.cpp b/lib/System/FreeBSD/Memory.cpp index 4ab1a5dcc15..4f8dea5dad6 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); -- 2.34.1