Lines Matching refs:EC
103 Error errorCodeToError(std::error_code EC) { in errorCodeToError() argument
104 if (!EC) in errorCodeToError()
106 return Error(std::make_unique<ECError>(ECError(EC))); in errorCodeToError()
110 std::error_code EC; in errorToErrorCode() local
112 EC = EI.convertToErrorCode(); in errorToErrorCode()
114 if (EC == inconvertibleErrorCode()) in errorToErrorCode()
115 report_fatal_error(Twine(EC.message())); in errorToErrorCode()
116 return EC; in errorToErrorCode()
132 StringError::StringError(std::error_code EC, const Twine &S) in StringError() argument
133 : Msg(S.str()), EC(EC) {} in StringError()
135 StringError::StringError(const Twine &S, std::error_code EC) in StringError() argument
136 : Msg(S.str()), EC(EC), PrintMsgOnly(true) {} in StringError()
142 OS << EC.message(); in log()
149 return EC; in convertToErrorCode()
152 Error createStringError(std::error_code EC, char const *Msg) { in createStringError() argument
153 return make_error<StringError>(Msg, EC); in createStringError()