summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-xray
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-10-27 00:34:24 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-10-27 00:34:24 +0000
commit3f286ad1fe2c9a543a006c44c07586fcfd9ccea7 (patch)
treeaa4af91b1e9f3990b6d7120b0e6541c40d6f7ccd /llvm/tools/llvm-xray
parent3d945f62479c7a866583e44382dc57725de2d6e3 (diff)
downloadbcm5719-llvm-3f286ad1fe2c9a543a006c44c07586fcfd9ccea7.tar.gz
bcm5719-llvm-3f286ad1fe2c9a543a006c44c07586fcfd9ccea7.zip
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
Diffstat (limited to 'llvm/tools/llvm-xray')
-rw-r--r--llvm/tools/llvm-xray/xray-extract.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-xray/xray-extract.cc b/llvm/tools/llvm-xray/xray-extract.cc
index e40dd3d5968..4fbe5ec3565 100644
--- a/llvm/tools/llvm-xray/xray-extract.cc
+++ b/llvm/tools/llvm-xray/xray-extract.cc
@@ -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;
OpenPOWER on IntegriCloud