From 27ce8feb4adbb13c0efcc2d560c93dfb71785cb2 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Fri, 24 Jan 2014 17:18:52 +0000 Subject: 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 --- tools/lli/RPCChannel.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools/lli/RPCChannel.h') diff --git a/tools/lli/RPCChannel.h b/tools/lli/RPCChannel.h index d04c8c25b4..2d8c708128 100644 --- a/tools/lli/RPCChannel.h +++ b/tools/lli/RPCChannel.h @@ -27,8 +27,6 @@ public: RPCChannel() {} ~RPCChannel(); - static void ReportError(int rc, size_t Size, std::string &ErrorMsg); - /// Start the remote process. /// /// @returns True on success. On failure, ErrorMsg is updated with @@ -40,8 +38,8 @@ public: // This will get filled in as a point to an OS-specific structure. void *ConnectionData; - int WriteBytes(const void *Data, size_t Size); - int ReadBytes(void *Data, size_t Size); + bool WriteBytes(const void *Data, size_t Size); + bool ReadBytes(void *Data, size_t Size); void Wait(); }; -- cgit v1.2.3