[llvm-size] Fix time to check if time of use bug.

This was the last tool relying on this pattern.

llvm-svn: 249244
This commit is contained in:
Davide Italiano
2015-10-03 19:44:06 +00:00
parent bc707d04a4
commit f0acbbfd96
2 changed files with 2 additions and 8 deletions

View File

@@ -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);