diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-10-31 20:37:14 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2012-10-31 20:37:14 +0000 |
commit | 2932284f045005bc3ed850f9c42524fadf3ae3d8 (patch) | |
tree | f0f8d957b838d107ec5dfe91be0b069e4cde83b5 /tools/lli | |
parent | 6d42bbfe5e18f7256049435f2e23d11aeee670f1 (diff) |
Mark code, not data, as executable in lli RemoteTarget simulator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli')
-rw-r--r-- | tools/lli/RemoteTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lli/RemoteTarget.cpp b/tools/lli/RemoteTarget.cpp index 66743225db..212bdfda1c 100644 --- a/tools/lli/RemoteTarget.cpp +++ b/tools/lli/RemoteTarget.cpp @@ -36,13 +36,13 @@ bool RemoteTarget::allocateSpace(size_t Size, unsigned Alignment, bool RemoteTarget::loadData(uint64_t Address, const void *Data, size_t Size) { memcpy ((void*)Address, Data, Size); - sys::MemoryBlock Mem((void*)Address, Size); - sys::Memory::setExecutable(Mem, &ErrorMsg); return false; } bool RemoteTarget::loadCode(uint64_t Address, const void *Data, size_t Size) { memcpy ((void*)Address, Data, Size); + sys::MemoryBlock Mem((void*)Address, Size); + sys::Memory::setExecutable(Mem, &ErrorMsg); return false; } |