mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Use the simpler sys::fs:;exists. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -444,8 +444,7 @@ static bool checkMachOAndArchFlags(ObjectFile *o, StringRef file) {
|
|||||||
static void PrintFileSectionSizes(StringRef file) {
|
static void PrintFileSectionSizes(StringRef file) {
|
||||||
// If file is not stdin, check that it exists.
|
// If file is not stdin, check that it exists.
|
||||||
if (file != "-") {
|
if (file != "-") {
|
||||||
bool exists;
|
if (!sys::fs::exists(file)) {
|
||||||
if (sys::fs::exists(file, exists) || !exists) {
|
|
||||||
errs() << ToolName << ": '" << file << "': "
|
errs() << ToolName << ": '" << file << "': "
|
||||||
<< "No such file\n";
|
<< "No such file\n";
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user