projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d42304
)
Mark code, not data, as executable in lli RemoteTarget simulator.
author
Andrew Kaylor
<andrew.kaylor@intel.com>
Wed, 31 Oct 2012 20:37:14 +0000
(20:37 +0000)
committer
Andrew Kaylor
<andrew.kaylor@intel.com>
Wed, 31 Oct 2012 20:37:14 +0000
(20:37 +0000)
llvm-svn: 167164
llvm/tools/lli/RemoteTarget.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/lli/RemoteTarget.cpp
b/llvm/tools/lli/RemoteTarget.cpp
index
6674322
..
212bdfd
100644
(file)
--- a/
llvm/tools/lli/RemoteTarget.cpp
+++ b/
llvm/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;
}