[llvm] r257309 - [Orc] Remove the FPRPCChannel class from RPCChannel.h - it requires unistd.h,
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 10 18:15:12 PST 2016
Author: lhames
Date: Sun Jan 10 20:15:12 2016
New Revision: 257309
URL: http://llvm.org/viewvc/llvm-project?rev=257309&view=rev
Log:
[Orc] Remove the FPRPCChannel class from RPCChannel.h - it requires unistd.h,
which was removed in r257306.
Modified:
llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCChannel.h
Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCChannel.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCChannel.h?rev=257309&r1=257308&r2=257309&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCChannel.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/RPCChannel.h Sun Jan 10 20:15:12 2016
@@ -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 <typename T, typename... Ts>
std::error_code serialize_seq(RPCChannel &C, const T &Arg, const Ts &... Args) {
More information about the llvm-commits
mailing list