summaryrefslogtreecommitdiff
path: root/tools/lli/RPCChannel.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/RPCChannel.h
parentc166623dcd48fb5379927a64d8ffbf1e2d500e16 (diff)
downloadllvm-27ce8feb4adbb13c0efcc2d560c93dfb71785cb2.tar.gz
llvm-27ce8feb4adbb13c0efcc2d560c93dfb71785cb2.tar.bz2
llvm-27ce8feb4adbb13c0efcc2d560c93dfb71785cb2.tar.xz
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/RPCChannel.h')
-rw-r--r--tools/lli/RPCChannel.h6
1 files changed, 2 insertions, 4 deletions
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();
};