aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/llvm/System/Memory.h5
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);
+
/// @}
};
}