summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-09-18 07:54:21 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-09-18 07:54:21 +0000
commitbc4707a2554ac04ba006bf70035e7bc7270236a9 (patch)
treede53bff1fc81864b96c267cd930d7ea35a2dad3e /include
parent057d0c35358841aba449d203622416431163cb83 (diff)
downloadllvm-bc4707a2554ac04ba006bf70035e7bc7270236a9.tar.gz
llvm-bc4707a2554ac04ba006bf70035e7bc7270236a9.tar.bz2
llvm-bc4707a2554ac04ba006bf70035e7bc7270236a9.tar.xz
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h
index 014633c8c5..86895e2317 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);
};
}
}