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 | 535e7969fbb146d6a5c4105b20bbcbeed11acd73 (patch) | |
tree | 1b5c33d69b9c83b30e0dea990e6d522f62018bc5 /include | |
parent | d111358ce048c11a4e114418731ee892da23abdc (diff) | |
download | external_llvm-535e7969fbb146d6a5c4105b20bbcbeed11acd73.zip external_llvm-535e7969fbb146d6a5c4105b20bbcbeed11acd73.tar.gz external_llvm-535e7969fbb146d6a5c4105b20bbcbeed11acd73.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')
-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); + /// @} }; } |