From 096cda11fcd9c8d9ac23942858a788df0090fbd4 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Thu, 17 Sep 2015 22:29:58 +0000 Subject: [llvm-readobj] Fix another "time of check to time of use bug". It seems there's more copy-paste between tools than needed. llvm-svn: 247954 --- llvm/tools/llvm-readobj/llvm-readobj.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'llvm/tools/llvm-readobj') diff --git a/llvm/tools/llvm-readobj/llvm-readobj.cpp b/llvm/tools/llvm-readobj/llvm-readobj.cpp index a8e4ca4893f..7e7c4eeaff7 100644 --- a/llvm/tools/llvm-readobj/llvm-readobj.cpp +++ b/llvm/tools/llvm-readobj/llvm-readobj.cpp @@ -394,11 +394,6 @@ static void dumpMachOUniversalBinary(const MachOUniversalBinary *UBinary) { /// @brief Opens \a File and dumps it. static void dumpInput(StringRef File) { - // If file isn't stdin, check that it exists. - if (File != "-" && !sys::fs::exists(File)) { - reportError(File, readobj_error::file_not_found); - return; - } // Attempt to open the binary. ErrorOr> BinaryOrErr = createBinary(File); -- cgit v1.2.3