summaryrefslogtreecommitdiff
path: root/tools/lli/RemoteTargetExternal.h
diff options
context:
space:
mode:
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 b332b19c0b..17218a8c23 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.