diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-28 00:58:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-28 00:58:48 +0000 |
commit | 34e40d44c2730aec408ccd1e1e9f379e1feb87de (patch) | |
tree | d09753fe4a7b9eaed28f65fdf09a6ac0e2e3a6d9 | |
parent | 0cb162b3bb9b5f0fbac40bff4a33fd35083a6673 (diff) | |
download | external_llvm-34e40d44c2730aec408ccd1e1e9f379e1feb87de.zip external_llvm-34e40d44c2730aec408ccd1e1e9f379e1feb87de.tar.gz external_llvm-34e40d44c2730aec408ccd1e1e9f379e1feb87de.tar.bz2 |
Add a new function for the JIT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13869 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/Support/SystemUtils.h | 7 | ||||
-rw-r--r-- | include/llvm/Support/SystemUtils.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/Support/SystemUtils.h b/include/Support/SystemUtils.h index d8c5a92..79573fe 100644 --- a/include/Support/SystemUtils.h +++ b/include/Support/SystemUtils.h @@ -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 diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index d8c5a92..79573fe 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -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 |