LCOV - code coverage report
Current view: top level - lib/ExecutionEngine/Orc - RPCUtils.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 2 17 11.8 %
Date: 2018-10-20 13:21:21 Functions: 1 7 14.3 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      14             : #include "llvm/ExecutionEngine/Orc/RPCUtils.h"
      15             : 
      16             : char llvm::orc::rpc::RPCFatalError::ID = 0;
      17             : char llvm::orc::rpc::ConnectionClosed::ID = 0;
      18             : char llvm::orc::rpc::ResponseAbandoned::ID = 0;
      19             : char llvm::orc::rpc::CouldNotNegotiate::ID = 0;
      20             : 
      21             : namespace llvm {
      22             : namespace orc {
      23             : namespace rpc {
      24             : 
      25           0 : std::error_code ConnectionClosed::convertToErrorCode() const {
      26           0 :   return orcError(OrcErrorCode::RPCConnectionClosed);
      27             : }
      28             : 
      29           0 : void ConnectionClosed::log(raw_ostream &OS) const {
      30           0 :   OS << "RPC connection already closed";
      31           0 : }
      32             : 
      33           0 : std::error_code ResponseAbandoned::convertToErrorCode() const {
      34           0 :   return orcError(OrcErrorCode::RPCResponseAbandoned);
      35             : }
      36             : 
      37           0 : void ResponseAbandoned::log(raw_ostream &OS) const {
      38           0 :   OS << "RPC response abandoned";
      39           0 : }
      40             : 
      41           1 : CouldNotNegotiate::CouldNotNegotiate(std::string Signature)
      42           1 :     : Signature(std::move(Signature)) {}
      43             : 
      44           0 : std::error_code CouldNotNegotiate::convertToErrorCode() const {
      45           0 :   return orcError(OrcErrorCode::RPCCouldNotNegotiateFunction);
      46             : }
      47             : 
      48           0 : void CouldNotNegotiate::log(raw_ostream &OS) const {
      49           0 :   OS << "Could not negotiate RPC function " << Signature;
      50           0 : }
      51             : 
      52             : 
      53             : } // end namespace rpc
      54             : } // end namespace orc
      55             : } // end namespace llvm

Generated by: LCOV version 1.13