diff options
author | Jim Grosbach <grosbach@apple.com> | 2008-10-20 21:39:23 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2008-10-20 21:39:23 +0000 |
commit | 932a32d2512353478d16c4101582adff404a55a5 (patch) | |
tree | b7c612f52251795f1bcc239b592f57ff89e9fbf4 /include/llvm/System/Memory.h | |
parent | d659d50482e2f9edf8f436e4a1aa30c68c6d020b (diff) |
Update the stub and callback code to handle lazy compilation. The stub
is re-written by the callback to branch directly to the compiled code
in future invocations.
Added back in range-based memory permission functions for the updating of
the stub on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Memory.h')
-rw-r--r-- | include/llvm/System/Memory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/System/Memory.h b/include/llvm/System/Memory.h index 4d0828b575..136dc8a328 100644 --- a/include/llvm/System/Memory.h +++ b/include/llvm/System/Memory.h @@ -79,6 +79,14 @@ namespace sys { /// to mark a block of code as RW since the protections are on page /// boundaries, and the JIT internal allocations are not page aligned. static bool setWritable (MemoryBlock &M, std::string *ErrMsg = 0); + + /// setRangeExecutable - Mark the page containing a range of addresses + /// as executable. + static bool setRangeExecutable(const void *Addr, size_t Size); + + /// setRangeWritable - Mark the page containing a range of addresses + /// as writable. + static bool setRangeWritable(const void *Addr, size_t Size); }; } } |