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 /lib/System/Win32/Memory.inc | |
parent | d659d50482e2f9edf8f436e4a1aa30c68c6d020b (diff) | |
download | external_llvm-932a32d2512353478d16c4101582adff404a55a5.zip external_llvm-932a32d2512353478d16c4101582adff404a55a5.tar.gz external_llvm-932a32d2512353478d16c4101582adff404a55a5.tar.bz2 |
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 'lib/System/Win32/Memory.inc')
-rw-r--r-- | lib/System/Win32/Memory.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/System/Win32/Memory.inc b/lib/System/Win32/Memory.inc index 6208015..5e5cf7a 100644 --- a/lib/System/Win32/Memory.inc +++ b/lib/System/Win32/Memory.inc @@ -53,13 +53,20 @@ bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) { return false; } -bool Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) { +bool Memory::setWritable(MemoryBlock &M, std::string *ErrMsg) { return true; } -bool Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) { +bool Memory::setExecutable(MemoryBlock &M, std::string *ErrMsg) { return false; } +bool Memory::setRangeWritable(const void *Addr, size_t Size) { + return true; } +bool Memory::setRangeExecutable(const void *Addr, size_t Size) { + return false; +} + +} |