Sanitize MCJIT remote execution
authorRenato Golin <renato.golin@linaro.org>
Tue, 14 Jan 2014 22:43:43 +0000 (22:43 +0000)
committerRenato Golin <renato.golin@linaro.org>
Tue, 14 Jan 2014 22:43:43 +0000 (22:43 +0000)
commit83ece7a4993edb295e71841bd51b298219186c4c
tree396a100a569c18057afe5c1ed288cabf65a2c0c0
parent0445dc203b0e4001a153d9af4bd75f5242401d06
Sanitize MCJIT remote execution

MCJIT remote execution (ChildTarget+RemoteTargetExternal) protocol was in
dire need of refactoring. It was fail-prone, had no error reporting and
implemented the same message logic on every single function.

This patch rectifies it, and makes it work on ARM, where it was randomly
failing. Other architectures shall profit from this change as well, making
their buildbots and releases more reliable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199261 91177308-0d34-0410-b5e6-96231b3b80d8
tools/lli/ChildTarget/ChildTarget.cpp
tools/lli/RemoteMemoryManager.cpp
tools/lli/RemoteTarget.cpp
tools/lli/RemoteTarget.h
tools/lli/RemoteTargetExternal.cpp
tools/lli/RemoteTargetExternal.h
tools/lli/RemoteTargetMessage.h
tools/lli/Unix/RemoteTargetExternal.inc
tools/lli/lli.cpp