git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217617
91177308-0d34-0410-b5e6-
96231b3b80d8
static void PrintFileSectionSizes(StringRef file) {
// If file is not stdin, check that it exists.
if (file != "-") {
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;
errs() << ToolName << ": '" << file << "': "
<< "No such file\n";
return;