diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 04:15:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 04:15:55 +0000 |
commit | 00efef28357ffbb7c65384225331624c3b84a5cd (patch) | |
tree | f5b69df03a3ad2e7f290b3766f62e9248b11c9d6 /llvm/lib/Support/Unix | |
parent | a96bd562c2fd8dcdc3c21947413dbe190762912a (diff) | |
download | bcm5719-llvm-00efef28357ffbb7c65384225331624c3b84a5cd.tar.gz bcm5719-llvm-00efef28357ffbb7c65384225331624c3b84a5cd.zip |
Remove PathWithStatus.
llvm-svn: 184910
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 63b05193716..4e877c22967 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -332,26 +332,6 @@ Path::isRegularFile() const { return false; } -const FileStatus * -PathWithStatus::getFileStatus(bool update, std::string *ErrStr) const { - if (!fsIsValid || update) { - struct stat buf; - if (0 != stat(path.c_str(), &buf)) { - MakeErrMsg(ErrStr, path + ": can't get status of file"); - return 0; - } - status.fileSize = buf.st_size; - status.modTime.fromEpochTime(buf.st_mtime); - status.mode = buf.st_mode; - status.user = buf.st_uid; - status.group = buf.st_gid; - status.isDir = S_ISDIR(buf.st_mode); - status.isFile = S_ISREG(buf.st_mode); - fsIsValid = true; - } - return &status; -} - static bool AddPermissionBits(const Path &File, int bits) { // Get the umask value from the operating system. We want to use it // when changing the file's permissions. Since calling umask() sets |