Refactor lli-child-target to remove duplicated code
authorAlp Toker <alp@nuanti.com>
Thu, 23 Jan 2014 11:04:42 +0000 (11:04 +0000)
committerAlp Toker <alp@nuanti.com>
Thu, 23 Jan 2014 11:04:42 +0000 (11:04 +0000)
commit972fb8ca77ce6ec04019d8732170fa1f726ee69a
treef8d0baed8c039df4661e66cd1dd2d8246641064f
parent5e95e642e9d072beddb6c75724b7064ba4d45f85
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
tools/lli/ChildTarget/CMakeLists.txt
tools/lli/ChildTarget/ChildTarget.cpp
tools/lli/ChildTarget/Unix/ChildTarget.inc
tools/lli/ChildTarget/Windows/ChildTarget.inc
tools/lli/RemoteTarget.cpp
tools/lli/RemoteTarget.h