summaryrefslogtreecommitdiff
path: root/tools/llvm-size/llvm-size.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2015-10-03 19:44:06 +0000
committerDavide Italiano <davide@freebsd.org>2015-10-03 19:44:06 +0000
commit982ae9e22d9c4e887d5db75afc913286dd54c28f (patch)
treeb69385da78e4cd467b5a80bd5506a9f8ded03426 /tools/llvm-size/llvm-size.cpp
parent3e07e8cf77ac32d34379f6af2d4b0d71421905ed (diff)
[llvm-size] Fix time to check if time of use bug.
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
Diffstat (limited to 'tools/llvm-size/llvm-size.cpp')
-rw-r--r--tools/llvm-size/llvm-size.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/tools/llvm-size/llvm-size.cpp b/tools/llvm-size/llvm-size.cpp
index 9a6e2c1ae4b..de2b0450523 100644
--- a/tools/llvm-size/llvm-size.cpp
+++ b/tools/llvm-size/llvm-size.cpp
@@ -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);