[llvm] r217617 - Use the simpler sys::fs:;exists. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Thu Sep 11 11:44:27 PDT 2014
Author: rafael
Date: Thu Sep 11 13:44:26 2014
New Revision: 217617
URL: http://llvm.org/viewvc/llvm-project?rev=217617&view=rev
Log:
Use the simpler sys::fs:;exists. NFC.
Modified:
llvm/trunk/tools/llvm-size/llvm-size.cpp
Modified: llvm/trunk/tools/llvm-size/llvm-size.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-size/llvm-size.cpp?rev=217617&r1=217616&r2=217617&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-size/llvm-size.cpp (original)
+++ llvm/trunk/tools/llvm-size/llvm-size.cpp Thu Sep 11 13:44:26 2014
@@ -444,8 +444,7 @@ static bool checkMachOAndArchFlags(Objec
static void PrintFileSectionSizes(StringRef file) {
// If file is not stdin, check that it exists.
if (file != "-") {
- bool exists;
- if (sys::fs::exists(file, exists) || !exists) {
+ if (!sys::fs::exists(file)) {
errs() << ToolName << ": '" << file << "': "
<< "No such file\n";
return;
More information about the llvm-commits
mailing list