LLVM: include/llvm/ExecutionEngine/Orc/Shared/OrcError.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_ORCERROR_H
14#define LLVM_EXECUTIONENGINE_ORC_SHARED_ORCERROR_H
15
19#include
20#include <system_error>
21
22namespace llvm {
23namespace orc {
24
45
47
49public:
51
53 std::optionalstd::string Context = {});
54 std::error_code convertToErrorCode() const override;
57 const std::optionalstd::string &getContext() const;
58
59private:
60 std::string SymbolName;
61 std::optionalstd::string Context;
62};
63
65public:
67
72private:
73 std::string SymbolName;
74};
75
76}
77}
78
79#endif
static StringRef getSymbolName(SymbolKind SymKind)
Base class for user error types.
static char ID
Definition OrcError.h:50
DuplicateDefinition(std::string SymbolName, std::optional< std::string > Context={})
void log(raw_ostream &OS) const override
Print an error message to an output stream.
JITSymbolNotFound(std::string SymbolName)
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
static char ID
Definition OrcError.h:66
Errors of this type should be returned if a module fails to include definitions that are claimed by t...
Errors of this type should be returned if a module contains definitions for symbols that are not clai...
This class implements an extremely fast bulk output stream that can only output to a stream.
OrcErrorCode
Definition OrcError.h:25
@ RemoteAllocatorDoesNotExist
Definition OrcError.h:30
@ RPCConnectionClosed
Definition OrcError.h:35
@ RPCCouldNotNegotiateFunction
Definition OrcError.h:36
@ UnknownErrorCodeFromRemote
Definition OrcError.h:40
@ UnexpectedRPCResponse
Definition OrcError.h:39
@ RemoteMProtectAddrUnrecognized
Definition OrcError.h:32
@ UnknownORCError
Definition OrcError.h:27
@ UnknownResourceHandle
Definition OrcError.h:41
@ RemoteIndirectStubsOwnerDoesNotExist
Definition OrcError.h:33
@ RPCResponseAbandoned
Definition OrcError.h:37
@ RemoteAllocatorIdAlreadyInUse
Definition OrcError.h:31
@ UnexpectedRPCCall
Definition OrcError.h:38
@ RemoteIndirectStubsOwnerIdAlreadyInUse
Definition OrcError.h:34
LLVM_ABI std::error_code orcError(OrcErrorCode ErrCode)
This is an optimization pass for GlobalISel generic memory operations.