summaryrefslogtreecommitdiff
path: root/tools/lli/RemoteTargetExternal.h
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-24 17:18:52 +0000
committerAlp Toker <alp@nuanti.com>2014-01-24 17:18:52 +0000
commit27ce8feb4adbb13c0efcc2d560c93dfb71785cb2 (patch)
tree376ab5932db318c557a2be458a3acb368bf0f2f0 /tools/lli/RemoteTargetExternal.h
parentc166623dcd48fb5379927a64d8ffbf1e2d500e16 (diff)
Report lli remote IO errors consistently
This enables IO error reports in both the child and server processes. The scheme still isn't entirely satisfactory and output is jumbled but it beats having no output at all. This will hopefully unblock ARM support (PR18057). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200017 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli/RemoteTargetExternal.h')
-rw-r--r--tools/lli/RemoteTargetExternal.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/tools/lli/RemoteTargetExternal.h b/tools/lli/RemoteTargetExternal.h
index b332b19c0b5..17218a8c238 100644
--- a/tools/lli/RemoteTargetExternal.h
+++ b/tools/lli/RemoteTargetExternal.h
@@ -32,24 +32,10 @@ class RemoteTargetExternal : public RemoteTarget {
RPCChannel RPC;
bool WriteBytes(const void *Data, size_t Size) {
- int rc = RPC.WriteBytes(Data, Size);
- if (rc != -1 && (size_t)rc == Size)
- return true;
-
- ErrorMsg = "WriteBytes: ";
- RPC.ReportError(rc, Size, ErrorMsg);
- return false;
+ return RPC.WriteBytes(Data, Size);
}
- bool ReadBytes(void *Data, size_t Size) {
- int rc = RPC.ReadBytes(Data, Size);
- if (rc != -1 && (size_t)rc == Size)
- return true;
-
- ErrorMsg = "ReadBytes: ";
- RPC.ReportError(rc, Size, ErrorMsg);
- return false;
- }
+ bool ReadBytes(void *Data, size_t Size) { return RPC.ReadBytes(Data, Size); }
public:
/// Allocate space in the remote target address space.