diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-18 07:54:21 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-18 07:54:21 +0000 |
commit | bc4707a2554ac04ba006bf70035e7bc7270236a9 (patch) | |
tree | de53bff1fc81864b96c267cd930d7ea35a2dad3e /include | |
parent | 057d0c35358841aba449d203622416431163cb83 (diff) | |
download | external_llvm-bc4707a2554ac04ba006bf70035e7bc7270236a9.zip external_llvm-bc4707a2554ac04ba006bf70035e7bc7270236a9.tar.gz external_llvm-bc4707a2554ac04ba006bf70035e7bc7270236a9.tar.bz2 |
Preliminary support for systems which require changing JIT memory regions privilege from read / write to read / executable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/System/Memory.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h index 014633c..86895e2 100644 --- a/include/llvm/System/Memory.h +++ b/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); }; } } |