Avoid std::errc::protocol_* to appease mingw

Like r291636 and r285261.

llvm-svn: 291786
This commit is contained in:
Hans Wennborg 2017-01-12 18:33:14 +00:00
parent 5236df9e0a
commit def64e98ae
3 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ Expected<Trace> llvm::xray::loadTraceFile(StringRef Filename, bool Sort) {
if (FileSize < 4) {
return make_error<StringError>(
Twine("File '") + Filename + "' too small for XRay.",
std::make_error_code(std::errc::protocol_error));
std::make_error_code(std::errc::executable_format_error));
}
// Attempt to mmap the file.

View File

@ -477,7 +477,7 @@ static CommandRegistration Unused(&Account, []() -> Error {
return joinErrors(
make_error<StringError>(
Twine("Failed loading input file '") + AccountInput + "'",
std::make_error_code(std::errc::protocol_error)),
std::make_error_code(std::errc::executable_format_error)),
TraceOrErr.takeError());
}

View File

@ -192,7 +192,7 @@ static CommandRegistration Unused(&Convert, []() -> Error {
return joinErrors(
make_error<StringError>(
Twine("Failed loading input file '") + ConvertInput + "'.",
std::make_error_code(std::errc::protocol_error)),
std::make_error_code(std::errc::executable_format_error)),
TraceOrErr.takeError());
}
return Error::success();