summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf0acbbfd966a52b059ea4c8a97eb218cb31543ec (patch)
tree9be7c1893b5003fecba7ece2520f64d474d49dba /llvm/tools/llvm-size/llvm-size.cpp
parentbc707d04a44389fbe8932b67934461e4d869bf32 (diff)
downloadbcm5719-llvm-f0acbbfd966a52b059ea4c8a97eb218cb31543ec.tar.gz
bcm5719-llvm-f0acbbfd966a52b059ea4c8a97eb218cb31543ec.zip
[llvm-size] Fix time to check if time of use bug.
This was the last tool relying on this pattern. llvm-svn: 249244
Diffstat (limited to 'llvm/tools/llvm-size/llvm-size.cpp')
-rw-r--r--llvm/tools/llvm-size/llvm-size.cpp8
1 files changed, 0 insertions, 8 deletions
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<OwningBinary<Binary>> BinaryOrErr = createBinary(file);
OpenPOWER on IntegriCloud