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 | 5374edb8ef921a40be7c147fd68ad559ef7ec0e5 (patch) | |
tree | cbb60ad045348f49f6782b5ba1b5d557d62600d3 | |
parent | 0bd77974465ce2b0430725126e746c2f8ada34e4 (diff) | |
download | bcm5719-llvm-5374edb8ef921a40be7c147fd68ad559ef7ec0e5.tar.gz bcm5719-llvm-5374edb8ef921a40be7c147fd68ad559ef7ec0e5.zip |
Add a new function for the JIT
llvm-svn: 13869
-rw-r--r-- | llvm/include/Support/SystemUtils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/Support/SystemUtils.h b/llvm/include/Support/SystemUtils.h index d8c5a92e281..79573fec67f 100644 --- a/llvm/include/Support/SystemUtils.h +++ b/llvm/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 |