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 | b83f697fb27423e0739a5b0dae22f60aa28359d8 (patch) | |
tree | de53bff1fc81864b96c267cd930d7ea35a2dad3e /lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | e4c813ccdf946b232816949926386aa6bbcdfa0e (diff) | |
download | external_llvm-b83f697fb27423e0739a5b0dae22f60aa28359d8.tar.gz external_llvm-b83f697fb27423e0739a5b0dae22f60aa28359d8.tar.bz2 external_llvm-b83f697fb27423e0739a5b0dae22f60aa28359d8.zip |
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 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 2a7b914ac3..52a69eaea7 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -86,7 +86,8 @@ Function *ExecutionEngine::FindFunctionNamed(const char *FnName) { /// existing data in memory. void ExecutionEngine::addGlobalMapping(const GlobalValue *GV, void *Addr) { MutexGuard locked(lock); - + + DOUT << "Map " << *GV << " to " << Addr << "\n"; void *&CurVal = state.getGlobalAddressMap(locked)[GV]; assert((CurVal == 0 || Addr == 0) && "GlobalMapping already established!"); CurVal = Addr; |