LLVM  10.0.0svn
RPCUtils.cpp
Go to the documentation of this file.
1 //===--------------- RPCUtils.cpp - RPCUtils implementation ---------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // RPCUtils implementation.
10 //
11 //===----------------------------------------------------------------------===//
12 
14 
19 
20 namespace llvm {
21 namespace orc {
22 namespace rpc {
23 
24 std::error_code ConnectionClosed::convertToErrorCode() const {
26 }
27 
29  OS << "RPC connection already closed";
30 }
31 
32 std::error_code ResponseAbandoned::convertToErrorCode() const {
34 }
35 
37  OS << "RPC response abandoned";
38 }
39 
41  : Signature(std::move(Signature)) {}
42 
43 std::error_code CouldNotNegotiate::convertToErrorCode() const {
45 }
46 
48  OS << "Could not negotiate RPC function " << Signature;
49 }
50 
51 
52 } // end namespace rpc
53 } // end namespace orc
54 } // end namespace llvm
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCUtils.cpp:24
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCUtils.cpp:36
This class represents lattice values for constants.
Definition: AllocatorList.h:23
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCUtils.cpp:32
Definition: BitVector.h:937
std::error_code orcError(OrcErrorCode ErrCode)
Definition: OrcError.cpp:76
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCUtils.cpp:28
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
Definition: RPCUtils.cpp:43
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
CouldNotNegotiate(std::string Signature)
Definition: RPCUtils.cpp:40
void log(raw_ostream &OS) const override
Print an error message to an output stream.
Definition: RPCUtils.cpp:47