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

Like r291636 and r285261.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hans Wennborg 2017-01-12 18:33:14 +00:00
parent 972c41872a
commit fa3329aff5
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();