Lines Matching refs:EC
92 Error errorCodeToError(std::error_code EC) { in errorCodeToError() argument
93 if (!EC) in errorCodeToError()
95 return Error(std::make_unique<ECError>(ECError(EC))); in errorCodeToError()
99 std::error_code EC; in errorToErrorCode() local
101 EC = EI.convertToErrorCode(); in errorToErrorCode()
103 if (EC == inconvertibleErrorCode()) in errorToErrorCode()
104 report_fatal_error(Twine(EC.message())); in errorToErrorCode()
105 return EC; in errorToErrorCode()
121 StringError::StringError(std::error_code EC, const Twine &S) in StringError() argument
122 : Msg(S.str()), EC(EC) {} in StringError()
124 StringError::StringError(const Twine &S, std::error_code EC) in StringError() argument
125 : Msg(S.str()), EC(EC), PrintMsgOnly(true) {} in StringError()
131 OS << EC.message(); in log()
138 return EC; in convertToErrorCode()
141 Error createStringError(std::error_code EC, char const *Msg) { in createStringError() argument
142 return make_error<StringError>(Msg, EC); in createStringError()