summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2017-01-12 18:33:14 +0000
committerHans Wennborg <hans@hanshq.net>2017-01-12 18:33:14 +0000
commit84da6615097d45b9aa2353dcf045225cf5beba1f (patch)
tree973917625efe75a04cf63cc4cc968643aa1aff3f /llvm
parentf5df7a18dd35c778d5009080f9729ba3833705ba (diff)
downloadbcm5719-llvm-84da6615097d45b9aa2353dcf045225cf5beba1f.tar.gz
bcm5719-llvm-84da6615097d45b9aa2353dcf045225cf5beba1f.zip
Avoid std::errc::protocol_* to appease mingw
Like r291636 and r285261. llvm-svn: 291786
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/XRay/Trace.cpp2
-rw-r--r--llvm/tools/llvm-xray/xray-account.cc2
-rw-r--r--llvm/tools/llvm-xray/xray-converter.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/XRay/Trace.cpp b/llvm/lib/XRay/Trace.cpp
index c8d95660431..51000c777de 100644
--- a/llvm/lib/XRay/Trace.cpp
+++ b/llvm/lib/XRay/Trace.cpp
@@ -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.
diff --git a/llvm/tools/llvm-xray/xray-account.cc b/llvm/tools/llvm-xray/xray-account.cc
index 747b4d18000..84a7da2470a 100644
--- a/llvm/tools/llvm-xray/xray-account.cc
+++ b/llvm/tools/llvm-xray/xray-account.cc
@@ -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());
}
diff --git a/llvm/tools/llvm-xray/xray-converter.cc b/llvm/tools/llvm-xray/xray-converter.cc
index 7dfc8374c28..31275e2902f 100644
--- a/llvm/tools/llvm-xray/xray-converter.cc
+++ b/llvm/tools/llvm-xray/xray-converter.cc
@@ -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();
OpenPOWER on IntegriCloud