Add a new function for the JIT

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-05-28 00:58:48 +00:00
parent 0cb162b3bb
commit 34e40d44c2
2 changed files with 14 additions and 0 deletions

View File

@ -52,6 +52,13 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args,
/// ///
int ExecWait (const char * const argv[], const char * const envp[]); 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 } // End llvm namespace
#endif #endif

View File

@ -52,6 +52,13 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args,
/// ///
int ExecWait (const char * const argv[], const char * const envp[]); 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 } // End llvm namespace
#endif #endif