From: Lang Hames Date: Mon, 11 Jan 2016 02:15:12 +0000 (+0000) Subject: [Orc] Remove the FPRPCChannel class from RPCChannel.h - it requires unistd.h, X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=ed650a3bd90a2e3c67cb53b80b322d1093d0dd8e [Orc] Remove the FPRPCChannel class from RPCChannel.h - it requires unistd.h, which was removed in r257306. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257309 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/Orc/RPCChannel.h b/include/llvm/ExecutionEngine/Orc/RPCChannel.h index b4b7a0a1b4e..b97b6daf586 100644 --- a/include/llvm/ExecutionEngine/Orc/RPCChannel.h +++ b/include/llvm/ExecutionEngine/Orc/RPCChannel.h @@ -28,33 +28,6 @@ public: virtual std::error_code send() = 0; }; -/// RPC channel that reads from and writes from file descriptors. -class FDRPCChannel : public RPCChannel { -public: - FDRPCChannel(int InFD, int OutFD) : InFD(InFD), OutFD(OutFD) {} - - std::error_code readBytes(char *Dst, unsigned Size) override { - assert(Dst && "Attempt to read into null."); - ssize_t ReadResult = ::read(InFD, Dst, Size); - if (ReadResult != Size) - return std::error_code(errno, std::generic_category()); - return std::error_code(); - } - - std::error_code appendBytes(const char *Src, unsigned Size) override { - assert(Src && "Attempt to append from null."); - ssize_t WriteResult = ::write(OutFD, Src, Size); - if (WriteResult != Size) - std::error_code(errno, std::generic_category()); - return std::error_code(); - } - - std::error_code send() override { return std::error_code(); } - -private: - int InFD, OutFD; -}; - /// RPC channel serialization for a variadic list of arguments. template std::error_code serialize_seq(RPCChannel &C, const T &Arg, const Ts &... Args) {