27 const char *
name()
const noexcept
override {
return "orc"; }
29 std::string message(
int condition)
const override {
30 switch (static_cast<OrcErrorCode>(condition)) {
32 return "Unknown ORC error";
34 return "Duplicate symbol definition";
36 return "JIT symbol not found";
38 return "Remote allocator does not exist";
40 return "Remote allocator Id already in use";
42 return "Remote mprotect call references unallocated memory";
44 return "Remote indirect stubs owner does not exist";
46 return "Remote indirect stubs owner Id already in use";
48 return "RPC connection closed";
50 return "Could not negotiate RPC function";
52 return "RPC response abandoned";
54 return "Unexpected RPC call";
56 return "Unexpected RPC response";
58 return "Unknown error returned from remote RPC function " 59 "(Use StringError to get error message)";
61 return "Unknown resource handle";
77 typedef std::underlying_type<OrcErrorCode>::type UT;
78 return std::error_code(static_cast<UT>(ErrCode), *OrcErrCat);
83 : SymbolName(
std::move(SymbolName)) {}
90 OS <<
"Duplicate definition of symbol '" << SymbolName <<
"'";
98 : SymbolName(
std::move(SymbolName)) {}
101 typedef std::underlying_type<OrcErrorCode>::type UT;
107 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...