mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 06:35:25 +00:00
API change Path::isSpecialFile to Path::isRegularFile, improve semantics in regards to comments from 89765 post review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -454,17 +454,17 @@ Path::canWrite() const {
|
||||
}
|
||||
|
||||
bool
|
||||
Path::isSpecialFile() const {
|
||||
Path::isRegularFile() const {
|
||||
// Get the status so we can determine if its a file or directory
|
||||
struct stat buf;
|
||||
|
||||
if (0 != stat(path.c_str(), &buf))
|
||||
return true;
|
||||
|
||||
if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
if (S_ISREG(buf.st_mode))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user