<p dir="ltr">Thanks! </p>
<div class="gmail_quote">On Oct 3, 2015 3:45 PM, "Davide Italiano via llvm-commits" <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: davide<br>
Date: Sat Oct  3 14:44:06 2015<br>
New Revision: 249244<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=249244&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=249244&view=rev</a><br>
Log:<br>
[llvm-size] Fix time to check if time of use bug.<br>
<br>
This was the last tool relying on this pattern.<br>
<br>
Added:<br>
    llvm/trunk/test/tools/llvm-size/<br>
    llvm/trunk/test/tools/llvm-size/basic.test<br>
Modified:<br>
    llvm/trunk/tools/llvm-size/llvm-size.cpp<br>
<br>
Added: llvm/trunk/test/tools/llvm-size/basic.test<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-size/basic.test?rev=249244&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-size/basic.test?rev=249244&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/test/tools/llvm-size/basic.test (added)<br>
+++ llvm/trunk/test/tools/llvm-size/basic.test Sat Oct  3 14:44:06 2015<br>
@@ -0,0 +1,2 @@<br>
+RUN: llvm-size %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s<br>
+ENOENT: {{.*}}llvm-size: {{.*}}.blah: {{[Nn]}}o such file or directory<br>
<br>
Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=249244&r1=249243&r2=249244&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=249244&r1=249243&r2=249244&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)<br>
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Sat Oct  3 14:44:06 2015<br>
@@ -413,14 +413,6 @@ static bool checkMachOAndArchFlags(Objec<br>
 /// @brief Print the section sizes for @p file. If @p file is an archive, print<br>
 ///        the section sizes for each archive member.<br>
 static void PrintFileSectionSizes(StringRef file) {<br>
-  // If file is not stdin, check that it exists.<br>
-  if (file != "-") {<br>
-    if (!sys::fs::exists(file)) {<br>
-      errs() << ToolName << ": '" << file << "': "<br>
-             << "No such file\n";<br>
-      return;<br>
-    }<br>
-  }<br>
<br>
   // Attempt to open the binary.<br>
   ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(file);<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>