Lines Matching refs:EC
88 Error errorCodeToError(std::error_code EC) { in errorCodeToError() argument
89 if (!EC) in errorCodeToError()
91 return Error(llvm::make_unique<ECError>(ECError(EC))); in errorCodeToError()
95 std::error_code EC; in errorToErrorCode() local
97 EC = EI.convertToErrorCode(); in errorToErrorCode()
99 if (EC == inconvertibleErrorCode()) in errorToErrorCode()
100 report_fatal_error(EC.message()); in errorToErrorCode()
101 return EC; in errorToErrorCode()
116 StringError::StringError(std::error_code EC, const Twine &S) in StringError() argument
117 : Msg(S.str()), EC(EC) {} in StringError()
119 StringError::StringError(const Twine &S, std::error_code EC) in StringError() argument
120 : Msg(S.str()), EC(EC), PrintMsgOnly(true) {} in StringError()
126 OS << EC.message(); in log()
133 return EC; in convertToErrorCode()
136 Error createStringError(std::error_code EC, char const *Msg) { in createStringError() argument
137 return make_error<StringError>(Msg, EC); in createStringError()