From 746782dde54faa42340ada7430b62a88ca95ced6 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 25 Nov 2009 06:32:19 +0000 Subject: API change Path::isSpecialFile to Path::isRegularFile, improve semantics in regards to comments from 89765 post review. llvm-svn: 89848 --- llvm/lib/System/Unix/Path.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/System/Unix') diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc index 8dd76a74128..4300d6719b3 100644 --- a/llvm/lib/System/Unix/Path.inc +++ b/llvm/lib/System/Unix/Path.inc @@ -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 -- cgit v1.2.3