summaryrefslogtreecommitdiff
path: root/tools/lli/ChildTarget
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lli/ChildTarget')
-rw-r--r--tools/lli/ChildTarget/ChildTarget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lli/ChildTarget/ChildTarget.cpp b/tools/lli/ChildTarget/ChildTarget.cpp
index 1e3000da46..4603496c98 100644
--- a/tools/lli/ChildTarget/ChildTarget.cpp
+++ b/tools/lli/ChildTarget/ChildTarget.cpp
@@ -34,9 +34,11 @@ private:
// OS-specific functions
void initializeConnection();
int WriteBytes(const void *Data, size_t Size) {
- return RPC.WriteBytes(Data, Size);
+ return RPC.WriteBytes(Data, Size) ? Size : -1;
+ }
+ int ReadBytes(void *Data, size_t Size) {
+ return RPC.ReadBytes(Data, Size) ? Size : -1;
}
- int ReadBytes(void *Data, size_t Size) { return RPC.ReadBytes(Data, Size); }
// Communication handles (OS-specific)
void *ConnectionData;