From: Reid Spencer Date: Wed, 15 Sep 2004 03:55:45 +0000 (+0000) Subject: Fix the interface to ReleaseRWX to take MemoryBlock& not Memory& X-Git-Tag: android-x86-6.0-r1~1003^2~52865 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4909b6c60c533a872f78121c6a7e1e3275e1faf4;p=android-x86%2Fexternal-llvm.git 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 --- 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);