mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 21:45:16 +00:00
xray-extract.cc: Quick fix for mingw, to avoid errc::protocol_error.
errc::protocol_error is winsock-oriented and mingw doesn't include it. (MS does, though) llvm-svn: 285261
This commit is contained in:
parent
616a813fef
commit
59b3cfe715
@ -160,7 +160,7 @@ llvm::Error LoadBinaryInstrELF(
|
||||
return make_error<StringError>(
|
||||
Twine("Encountered unknown sled type ") + "'" + Twine(int32_t{Kind}) +
|
||||
"'.",
|
||||
std::make_error_code(std::errc::protocol_error));
|
||||
std::make_error_code(std::errc::executable_format_error));
|
||||
}
|
||||
auto AlwaysInstrument = Extractor.getU8(&OffsetPtr);
|
||||
Entry.AlwaysInstrument = AlwaysInstrument != 0;
|
||||
@ -200,7 +200,7 @@ InstrumentationMapExtractor::InstrumentationMapExtractor(std::string Filename,
|
||||
make_error<StringError>(
|
||||
Twine("Cannot extract instrumentation map from '") +
|
||||
ExtractInput + "'.",
|
||||
std::make_error_code(std::errc::protocol_error)),
|
||||
std::make_error_code(std::errc::executable_format_error)),
|
||||
std::move(E));
|
||||
});
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user