diff options
author | Owen Anderson <resistor@mac.com> | 2008-03-22 02:33:53 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2008-03-22 02:33:53 +0000 |
commit | a4bf5c046da56cb0e8b6936c106b9b3d3d9b9fd0 (patch) | |
tree | 1b5c33d69b9c83b30e0dea990e6d522f62018bc5 /include/llvm | |
parent | 08b1173971a51eb89d7d6ee0992c39170c86994a (diff) | |
download | external_llvm-a4bf5c046da56cb0e8b6936c106b9b3d3d9b9fd0.zip external_llvm-a4bf5c046da56cb0e8b6936c106b9b3d3d9b9fd0.tar.gz external_llvm-a4bf5c046da56cb0e8b6936c106b9b3d3d9b9fd0.tar.bz2 |
Add an AllocateRW to match AllocateRWX.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48676 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/System/Memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h index b4ebf0e..8c1c37a 100644 --- a/include/llvm/System/Memory.h +++ b/include/llvm/System/Memory.h @@ -57,6 +57,10 @@ namespace sys { const MemoryBlock *NearBlock, std::string *ErrMsg = 0); + static MemoryBlock AllocateRW(unsigned NumBytes, + const MemoryBlock *NearBlock, + std::string *ErrMsg = 0); + /// This method releases a block of Read/Write/Execute memory that was /// allocated with the AllocateRWX method. It should not be used to /// release any memory block allocated any other way. @@ -66,6 +70,7 @@ namespace sys { /// @throws std::string if an error occurred. /// @brief Release Read/Write/Execute memory. static bool ReleaseRWX(MemoryBlock &block, std::string *ErrMsg = 0); + /// @} }; } |