Add a new function for the JIT
authorChris Lattner <sabre@nondot.org>
Fri, 28 May 2004 00:58:48 +0000 (00:58 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 May 2004 00:58:48 +0000 (00:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13869 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/SystemUtils.h
include/llvm/Support/SystemUtils.h

index d8c5a92e28142db0185c6cf1b06acb46c7a7dfa0..79573fec67f434647bef6ba31c8c423fe10baaa0 100644 (file)
@@ -52,6 +52,13 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args,
 ///
 int ExecWait (const char * const argv[], const char * const envp[]);
 
+/// AllocateRWXMemory - Allocate a slab of memory with read/write/execute
+/// permissions.  This is typically used for JIT applications where we want
+/// to emit code to the memory then jump to it.  Getting this type of memory
+/// is very OS specific.
+///
+void *AllocateRWXMemory(unsigned NumBytes);
+
 } // End llvm namespace
 
 #endif
index d8c5a92e28142db0185c6cf1b06acb46c7a7dfa0..79573fec67f434647bef6ba31c8c423fe10baaa0 100644 (file)
@@ -52,6 +52,13 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args,
 ///
 int ExecWait (const char * const argv[], const char * const envp[]);
 
+/// AllocateRWXMemory - Allocate a slab of memory with read/write/execute
+/// permissions.  This is typically used for JIT applications where we want
+/// to emit code to the memory then jump to it.  Getting this type of memory
+/// is very OS specific.
+///
+void *AllocateRWXMemory(unsigned NumBytes);
+
 } // End llvm namespace
 
 #endif