LLVM  6.0.0svn
RPCUtils.cpp
Go to the documentation of this file.
1 //===--------------- RPCUtils.cpp - RPCUtils implementation ---------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // RPCUtils implementation.
11 //
12 //===----------------------------------------------------------------------===//
13 
15 
20 
21 namespace llvm {
22 namespace orc {
23 namespace rpc {
24 
25 std::error_code ConnectionClosed::convertToErrorCode() const {
27 }
28 
30  OS << "RPC connection already closed";
31 }
32 
33 std::error_code ResponseAbandoned::convertToErrorCode() const {
35 }
36 
38  OS << "RPC response abandoned";
39 }
40 
42  : Signature(std::move(Signature)) {}
43 
44 std::error_code CouldNotNegotiate::convertToErrorCode() const {
46 }
47 
49  OS << "Could not negotiate RPC function " << Signature;
50 }
51 
52 
53 } // end namespace rpc
54 } // end namespace orc
55 } // end namespace llvm
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCUtils.cpp:25
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCUtils.cpp:37
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCUtils.cpp:33
Definition: BitVector.h:920
std::error_code orcError(OrcErrorCode ErrCode)
Definition: OrcError.cpp:72
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCUtils.cpp:29
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCUtils.cpp:44
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:44
CouldNotNegotiate(std::string Signature)
Definition: RPCUtils.cpp:41
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCUtils.cpp:48