summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/Memory.inc
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2008-10-20 21:39:23 +0000
committerJim Grosbach <grosbach@apple.com>2008-10-20 21:39:23 +0000
commit9396051e3dc723ebdb23fdb1779e4ced74119d6f (patch)
tree53ba122104e09ee7c535463b3da69823fa27aa46 /llvm/lib/System/Win32/Memory.inc
parent1a59b3b9b8dcf5091994c0af7c21e520b7173980 (diff)
downloadbcm5719-llvm-9396051e3dc723ebdb23fdb1779e4ced74119d6f.tar.gz
bcm5719-llvm-9396051e3dc723ebdb23fdb1779e4ced74119d6f.zip
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. llvm-svn: 57846
Diffstat (limited to 'llvm/lib/System/Win32/Memory.inc')
-rw-r--r--llvm/lib/System/Win32/Memory.inc11
1 files changed, 9 insertions, 2 deletions
diff --git a/llvm/lib/System/Win32/Memory.inc b/llvm/lib/System/Win32/Memory.inc
index 620801583a0..5e5cf7a6762 100644
--- a/llvm/lib/System/Win32/Memory.inc
+++ b/llvm/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;
+}
+
+}
OpenPOWER on IntegriCloud