17 #ifndef LLVM_SUPPORT_SYSTEM_ERROR_H
18 #define LLVM_SUPPORT_SYSTEM_ERROR_H
227 #include "llvm/Config/llvm-config.h"
237 # ifndef EAFNOSUPPORT
238 # define EAFNOSUPPORT 102
241 # define EADDRINUSE 100
243 # ifndef EADDRNOTAVAIL
244 # define EADDRNOTAVAIL 101
267 # ifndef ECONNABORTED
268 # define ECONNABORTED 106
271 # define EALREADY 103
273 # ifndef ECONNREFUSED
274 # define ECONNREFUSED 107
277 # define ECONNRESET 108
282 # ifndef EDESTADDRREQ
283 # define EDESTADDRREQ 109
289 # define ENOTEMPTY 41
300 # ifndef ENAMETOOLONG
301 # define ENAMETOOLONG 38
306 # ifndef EHOSTUNREACH
307 # define EHOSTUNREACH 110
334 # define EMSGSIZE 115
337 # define ENETDOWN 116
340 # define ENETRESET 117
343 # define ENETUNREACH 118
364 # define ENOPROTOOPT 123
388 # define ENOTSOCK 128
394 # define ENOTCONN 126
403 # define ECANCELED 105
406 # define EINPROGRESS 112
412 # define EOPNOTSUPP 130
415 # define EWOULDBLOCK 140
418 # define EOWNERDEAD 133
426 # ifndef EPROTONOSUPPORT
427 # define EPROTONOSUPPORT 135
441 # ifndef ENOTRECOVERABLE
442 # define ENOTRECOVERABLE 127
451 # define ETIMEDOUT 138
466 # define EOVERFLOW 132
469 # define EPROTOTYPE 136
501 bad_message = EINVAL,
541 no_message_available = ENOMSG,
549 no_stream_resources = ENOMEM,
560 not_a_stream = EINVAL,
568 operation_canceled = EINVAL,
583 protocol_error = EINVAL,
590 #ifdef ENOTRECOVERABLE
593 state_not_recoverable = EINVAL,
598 stream_timeout = ETIMEDOUT,
613 operator int()
const {
return v_;}
638 virtual const char*
name()
const = 0;
642 virtual std::string
message(
int _ev)
const = 0;
675 : _val_(_val), _cat_(&_cat) {}
737 : _val_(_val), _cat_(&_cat) {}
891 operator int()
const {
return v_;}
const error_category & system_category()
bool operator==(const error_category &_rhs) const
void operator<(const Optional< T > &X, const Optional< U > &Y)
Poison comparison between two Optional objects. Clients needs to explicitly compare the underlying va...
bool operator!=(const error_category &_rhs) const
virtual ~error_category()
const error_category & category() const
void assign(int _val, const error_category &_cat)
static void unspecified_bool_true()
const error_category & posix_category()
void(* unspecified_bool_type)()
virtual const char * name() const =0
error_condition default_error_condition() const
const error_category & category() const
void assign(int _val, const error_category &_cat)
virtual error_condition default_error_condition(int _ev) const
virtual bool equivalent(int _code, const error_condition &_condition) const
std::string message() const
static void unspecified_bool_true()
bool operator<(const error_category &_rhs) const
enable_if_c< is_error_code_enum< E >::value, error_code & >::type operator=(E _e)
virtual std::string message(int _ev) const =0
error_condition(E _e, typename enable_if_c< is_error_condition_enum< E >::value >::type *=0)
#define LLVM_DELETED_FUNCTION
std::string message() const
bool operator!=(uint64_t V1, const APInt &V2)
static error_code success()
const error_category & generic_category()
error_condition make_error_condition(errc _e)
void(* unspecified_bool_type)()
error_code(int _val, const error_category &_cat)
virtual std::string message(int ev) const LLVM_OVERRIDE
bool operator==(uint64_t V1, const APInt &V2)
error_code(E _e, typename enable_if_c< is_error_code_enum< E >::value >::type *=0)
error_code make_error_code(errc _e)
enable_if_c< is_error_condition_enum< E >::value, error_condition & >::type operator=(E _e)
error_condition(int _val, const error_category &_cat)