<div dir="ltr">FYI for +dberris<br><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 26, 2016 at 5:43 PM NAKAMURA Takumi via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: chapuni<br class="gmail_msg">
Date: Wed Oct 26 19:34:24 2016<br class="gmail_msg">
New Revision: 285261<br class="gmail_msg">
<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=285261&view=rev" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project?rev=285261&view=rev</a><br class="gmail_msg">
Log:<br class="gmail_msg">
xray-extract.cc: Quick fix for mingw, to avoid errc::protocol_error.<br class="gmail_msg">
<br class="gmail_msg">
errc::protocol_error is winsock-oriented and mingw doesn't include it. (MS does, though)<br class="gmail_msg">
<br class="gmail_msg">
Modified:<br class="gmail_msg">
    llvm/trunk/tools/llvm-xray/xray-extract.cc<br class="gmail_msg">
<br class="gmail_msg">
Modified: llvm/trunk/tools/llvm-xray/xray-extract.cc<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-extract.cc?rev=285261&r1=285260&r2=285261&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-xray/xray-extract.cc?rev=285261&r1=285260&r2=285261&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- llvm/trunk/tools/llvm-xray/xray-extract.cc (original)<br class="gmail_msg">
+++ llvm/trunk/tools/llvm-xray/xray-extract.cc Wed Oct 26 19:34:24 2016<br class="gmail_msg">
@@ -160,7 +160,7 @@ llvm::Error LoadBinaryInstrELF(<br class="gmail_msg">
       return make_error<StringError>(<br class="gmail_msg">
           Twine("Encountered unknown sled type ") + "'" + Twine(int32_t{Kind}) +<br class="gmail_msg">
               "'.",<br class="gmail_msg">
-          std::make_error_code(std::errc::protocol_error));<br class="gmail_msg">
+          std::make_error_code(std::errc::executable_format_error));<br class="gmail_msg">
     }<br class="gmail_msg">
     auto AlwaysInstrument = Extractor.getU8(&OffsetPtr);<br class="gmail_msg">
     Entry.AlwaysInstrument = AlwaysInstrument != 0;<br class="gmail_msg">
@@ -200,7 +200,7 @@ InstrumentationMapExtractor::Instrumenta<br class="gmail_msg">
               make_error<StringError>(<br class="gmail_msg">
                   Twine("Cannot extract instrumentation map from '") +<br class="gmail_msg">
                       ExtractInput + "'.",<br class="gmail_msg">
-                  std::make_error_code(std::errc::protocol_error)),<br class="gmail_msg">
+                  std::make_error_code(std::errc::executable_format_error)),<br class="gmail_msg">
               std::move(E));<br class="gmail_msg">
         });<br class="gmail_msg">
     break;<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
llvm-commits mailing list<br class="gmail_msg">
<a href="mailto:llvm-commits@lists.llvm.org" class="gmail_msg" target="_blank">llvm-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="gmail_msg">
</blockquote></div></div>