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 "Unknown ORC error";
35 return "Duplicate symbol definition";
37 return "JIT symbol not found";
39 return "Remote allocator does not exist";
41 return "Remote allocator Id already in use";
43 return "Remote mprotect call references unallocated memory";
45 return "Remote indirect stubs owner does not exist";
47 return "Remote indirect stubs owner Id already in use";
49 return "RPC connection closed";
51 return "Could not negotiate RPC function";
53 return "RPC response abandoned";
55 return "Unexpected RPC call";
57 return "Unexpected RPC response";
59 return "Unknown error returned from remote RPC function " 60 "(Use StringError to get error message)";
62 return "Unknown resource handle";
78 typedef std::underlying_type<OrcErrorCode>::type UT;
79 return std::error_code(static_cast<UT>(ErrCode), *OrcErrCat);
84 : SymbolName(
std::move(SymbolName)) {}
91 OS <<
"Duplicate definition of symbol '" << SymbolName <<
"'";
99 : SymbolName(
std::move(SymbolName)) {}
102 typedef std::underlying_type<OrcErrorCode>::type UT;
108 OS <<
"Could not find symbol '" << SymbolName <<
"'";
DuplicateDefinition(std::string SymbolName)
This class represents lattice values for constants.
const std::string & getSymbolName() const
void log(raw_ostream &OS) const override
Print an error message to an output stream.
constexpr char SymbolName[]
Key for Kernel::Metadata::mSymbolName.
std::error_code orcError(OrcErrorCode ErrCode)
const std::string & getSymbolName() const
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
static ManagedStatic< _object_error_category > error_category
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
JITSymbolNotFound(std::string SymbolName)
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...