summaryrefslogtreecommitdiff
path: root/tools/lli/RemoteTarget.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-23 11:04:42 +0000
committerAlp Toker <alp@nuanti.com>2014-01-23 11:04:42 +0000
commit972fb8ca77ce6ec04019d8732170fa1f726ee69a (patch)
treef8d0baed8c039df4661e66cd1dd2d8246641064f /tools/lli/RemoteTarget.cpp
parent5e95e642e9d072beddb6c75724b7064ba4d45f85 (diff)
downloadllvm-972fb8ca77ce6ec04019d8732170fa1f726ee69a.tar.gz
llvm-972fb8ca77ce6ec04019d8732170fa1f726ee69a.tar.bz2
llvm-972fb8ca77ce6ec04019d8732170fa1f726ee69a.tar.xz
Refactor lli-child-target to remove duplicated code
Eliminate the copies LLVM's System mmap and cache invalidation code. These were slowly drifting away from the original version, and moreover the copied code was a dead end in terms of portability. We now statically link to Support but in practice with stripping this adds next to no weight to the resultant binary. Also avoid installing lli-child-target to the user's $PATH. It's not meant to be run directly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli/RemoteTarget.cpp')
-rw-r--r--tools/lli/RemoteTarget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lli/RemoteTarget.cpp b/tools/lli/RemoteTarget.cpp
index 9631ef7aac..f07534d161 100644
--- a/tools/lli/RemoteTarget.cpp
+++ b/tools/lli/RemoteTarget.cpp
@@ -62,6 +62,7 @@ bool RemoteTarget::allocateSpace(size_t Size, unsigned Alignment,
return false;
}
Address = reinterpret_cast<uint64_t>(Mem.base());
+ Allocations.push_back(Mem);
return true;
}