[llvm] r285261 - xray-extract.cc: Quick fix for mingw, to avoid errc::protocol_error.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 31 11:01:45 PDT 2016
FYI for +dberris
On Wed, Oct 26, 2016 at 5:43 PM NAKAMURA Takumi via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: chapuni
> Date: Wed Oct 26 19:34:24 2016
> New Revision: 285261
>
> URL: http://llvm.org/viewvc/llvm-project?rev=285261&view=rev
> Log:
> 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)
>
> Modified:
> llvm/trunk/tools/llvm-xray/xray-extract.cc
>
> Modified: llvm/trunk/tools/llvm-xray/xray-extract.cc
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-extract.cc?rev=285261&r1=285260&r2=285261&view=diff
>
> ==============================================================================
> --- llvm/trunk/tools/llvm-xray/xray-extract.cc (original)
> +++ llvm/trunk/tools/llvm-xray/xray-extract.cc Wed Oct 26 19:34:24 2016
> @@ -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::Instrumenta
> 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;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161031/de4aac8a/attachment.html>
More information about the llvm-commits
mailing list