diff options
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/System/Memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/System/Memory.h b/llvm/include/llvm/System/Memory.h index 014633c8c55..86895e2317d 100644 --- a/llvm/include/llvm/System/Memory.h +++ b/llvm/include/llvm/System/Memory.h @@ -69,6 +69,11 @@ namespace sys { /// that has been emitted it must invalidate the instruction cache on some /// platforms. static void InvalidateInstructionCache(const void *Addr, size_t Len); + + /// SetRXPrivilege - Before the JIT can run a block of code, it has to be + /// given read and executable privilege. Return true if it is already r-x + /// or the system is able to change its previlege. + static bool SetRXPrivilege(const void *Addr, size_t Size); }; } } |

