mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-15 10:39:47 +00:00
tools/llvm-xray: Avoid std::errc::protocol_* to appease mingw, like r285261.
They are oriented from winsock and mingw doesn't import them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5499c1d786
commit
91424c3023
@ -195,7 +195,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)),
|
||||
std::move(Err));
|
||||
|
||||
raw_fd_ostream OS(ConvertOutput, EC,
|
||||
|
@ -254,7 +254,7 @@ InstrumentationMapExtractor::InstrumentationMapExtractor(std::string Filename,
|
||||
make_error<StringError>(
|
||||
Twine("Cannot load YAML instrumentation map from '") +
|
||||
Filename + "'.",
|
||||
std::make_error_code(std::errc::wrong_protocol_type)),
|
||||
std::make_error_code(std::errc::executable_format_error)),
|
||||
std::move(E));
|
||||
});
|
||||
break;
|
||||
|
@ -123,7 +123,7 @@ Error llvm::xray::NaiveLogLoader(StringRef Data, XRayFileHeader &FileHeader,
|
||||
default:
|
||||
return make_error<StringError>(
|
||||
Twine("Unknown record type '") + Twine(int{Type}) + "'",
|
||||
std::make_error_code(std::errc::protocol_error));
|
||||
std::make_error_code(std::errc::executable_format_error));
|
||||
}
|
||||
Record.FuncId = RecordExtractor.getSigned(&OffsetPtr, sizeof(int32_t));
|
||||
Record.TSC = RecordExtractor.getU64(&OffsetPtr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user