You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
Demangle
ExecutionEngine
IntelJITEvents
Interpreter
MCJIT
OProfileJIT
Orc
CMakeLists.txt
ExecutionUtils.cpp
IndirectionUtils.cpp
LLVMBuild.txt
NullResolver.cpp
OrcABISupport.cpp
OrcCBindings.cpp
OrcCBindingsStack.h
OrcError.cpp
OrcMCJITReplacement.cpp
OrcMCJITReplacement.h
RPCUtils.cpp
RuntimeDyld
CMakeLists.txt
ExecutionEngine.cpp
ExecutionEngineBindings.cpp
GDBRegistrationListener.cpp
LLVMBuild.txt
SectionMemoryManager.cpp
TargetSelect.cpp
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
version.txt.in
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
56 lines
1.6 KiB
C++
56 lines
1.6 KiB
C++
//===--------------- RPCUtils.cpp - RPCUtils implementation ---------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// RPCUtils implementation.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/ExecutionEngine/Orc/RPCUtils.h"
|
|
|
|
char llvm::orc::rpc::RPCFatalError::ID = 0;
|
|
char llvm::orc::rpc::ConnectionClosed::ID = 0;
|
|
char llvm::orc::rpc::ResponseAbandoned::ID = 0;
|
|
char llvm::orc::rpc::CouldNotNegotiate::ID = 0;
|
|
|
|
namespace llvm {
|
|
namespace orc {
|
|
namespace rpc {
|
|
|
|
std::error_code ConnectionClosed::convertToErrorCode() const {
|
|
return orcError(OrcErrorCode::RPCConnectionClosed);
|
|
}
|
|
|
|
void ConnectionClosed::log(raw_ostream &OS) const {
|
|
OS << "RPC connection already closed";
|
|
}
|
|
|
|
std::error_code ResponseAbandoned::convertToErrorCode() const {
|
|
return orcError(OrcErrorCode::RPCResponseAbandoned);
|
|
}
|
|
|
|
void ResponseAbandoned::log(raw_ostream &OS) const {
|
|
OS << "RPC response abandoned";
|
|
}
|
|
|
|
CouldNotNegotiate::CouldNotNegotiate(std::string Signature)
|
|
: Signature(std::move(Signature)) {}
|
|
|
|
std::error_code CouldNotNegotiate::convertToErrorCode() const {
|
|
return orcError(OrcErrorCode::RPCCouldNotNegotiateFunction);
|
|
}
|
|
|
|
void CouldNotNegotiate::log(raw_ostream &OS) const {
|
|
OS << "Could not negotiate RPC function " << Signature;
|
|
}
|
|
|
|
|
|
} // end namespace rpc
|
|
} // end namespace orc
|
|
} // end namespace llvm
|