mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
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:
parent
972c41872a
commit
fa3329aff5
@ -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.
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user