Skip to content

Commit

Permalink
[llvm-size] Fix time to check if time of use bug.
Browse files Browse the repository at this point in the history
This was the last tool relying on this pattern.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249244 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dcci committed Oct 3, 2015
1 parent 3e07e8c commit 982ae9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions test/tools/llvm-size/basic.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RUN: llvm-size %t.blah 2>&1 | FileCheck --check-prefix=ENOENT %s
ENOENT: {{.*}}llvm-size: {{.*}}.blah: {{[Nn]}}o such file or directory
8 changes: 0 additions & 8 deletions tools/llvm-size/llvm-size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,6 @@ static bool checkMachOAndArchFlags(ObjectFile *o, StringRef file) {
/// @brief Print the section sizes for @p file. If @p file is an archive, print
/// the section sizes for each archive member.
static void PrintFileSectionSizes(StringRef file) {
// If file is not stdin, check that it exists.
if (file != "-") {
if (!sys::fs::exists(file)) {
errs() << ToolName << ": '" << file << "': "
<< "No such file\n";
return;
}
}

// Attempt to open the binary.
ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(file);
Expand Down

0 comments on commit 982ae9e

Please sign in to comment.