19 using namespace llvm::orc;
28 const char *
name()
const noexcept
override {
return "orc"; }
30 std::string message(
int condition)
const override {
31 switch (static_cast<OrcErrorCode>(condition)) {
33 return "Remote allocator does not exist";
35 return "Remote allocator Id already in use";
37 return "Remote mprotect call references unallocated memory";
39 return "Remote indirect stubs owner does not exist";
41 return "Remote indirect stubs owner Id already in use";
43 return "RPC connection closed";
45 return "Could not negotiate RPC function";
47 return "RPC response abandoned";
49 return "JIT symbol not found";
51 return "Unexpected RPC call";
53 return "Unexpected RPC response";
55 return "Unknown error returned from remote RPC function "
56 "(Use StringError to get error message)";
71 typedef std::underlying_type<OrcErrorCode>::type UT;
72 return std::error_code(static_cast<UT>(ErrCode), *OrcErrCat);
76 : SymbolName(std::move(SymbolName)) {}
79 typedef std::underlying_type<OrcErrorCode>::type UT;
85 OS <<
"Could not find symbol '" << SymbolName <<
"'";
std::error_code orcError(OrcErrorCode ErrCode)
void log(raw_ostream &OS) const override
Print an error message to an output stream.
static ManagedStatic< _object_error_category > error_category
JITSymbolNotFound(std::string SymbolName)
llvm_unreachable("Unknown RegBank!")
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
This class implements an extremely fast bulk output stream that can only output to a stream...
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...
const std::string & getSymbolName() const