From f0acbbfd966a52b059ea4c8a97eb218cb31543ec Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Sat, 3 Oct 2015 19:44:06 +0000 Subject: [llvm-size] Fix time to check if time of use bug. This was the last tool relying on this pattern. llvm-svn: 249244 --- llvm/tools/llvm-size/llvm-size.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'llvm/tools/llvm-size') diff --git a/llvm/tools/llvm-size/llvm-size.cpp b/llvm/tools/llvm-size/llvm-size.cpp index 9a6e2c1ae4b..de2b0450523 100644 --- a/llvm/tools/llvm-size/llvm-size.cpp +++ b/llvm/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> BinaryOrErr = createBinary(file); -- cgit v1.2.3