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 response abandoned";
45 return "Unexpected RPC call";
47 return "Unexpected RPC response";
49 return "Unknown RPC function";
62 typedef std::underlying_type<OrcErrorCode>::type UT;
64 std::error_code(static_cast<UT>(ErrCode), *OrcErrCat));
Error errorCodeToError(std::error_code EC)
Helper for converting an std::error_code to a Error.
static ManagedStatic< _object_error_category > error_category
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Lightweight error class with error context and mandatory checking.
Error orcError(OrcErrorCode ErrCode)
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...