mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Add a new function for the JIT
llvm-svn: 13869
This commit is contained in:
parent
14dedcd354
commit
a691850f26
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user