lli: Factor portable messaging into a new RPCChannel facility

The client and server now use a single unified low-level RPC core built around
LLVM's existing cross-platform abstractions.

llvm-svn: 199947
diff --git a/llvm/tools/lli/RemoteTargetExternal.cpp b/llvm/tools/lli/RemoteTargetExternal.cpp
index 3bf7bf4..c1bc8df 100644
--- a/llvm/tools/lli/RemoteTargetExternal.cpp
+++ b/llvm/tools/lli/RemoteTargetExternal.cpp
@@ -111,7 +111,7 @@
 
 void RemoteTargetExternal::stop() {
   SendTerminate();
-  Wait();
+  RPC.Wait();
 }
 
 bool RemoteTargetExternal::SendAllocateSpace(uint32_t Alignment, uint32_t Size) {
@@ -317,9 +317,9 @@
 }
 
 #ifdef LLVM_ON_UNIX
-#include "Unix/RemoteTargetExternal.inc"
+#include "Unix/RPCChannel.inc"
 #endif
 
 #ifdef LLVM_ON_WIN32
-#include "Windows/RemoteTargetExternal.inc"
+#include "Windows/RPCChannel.inc"
 #endif