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 | 2c63b27e9f36dddc2660639026b19e606ad52cd0 (patch) | |
tree | 2c213fbcb136969177a05c051e38eeb26c1b7d86 /lib/Support/Unix/Path.inc | |
parent | 34b96d15764d51fa53f338e5d7be4d2aa244a945 (diff) | |
download | llvm-2c63b27e9f36dddc2660639026b19e606ad52cd0.tar.gz llvm-2c63b27e9f36dddc2660639026b19e606ad52cd0.tar.bz2 llvm-2c63b27e9f36dddc2660639026b19e606ad52cd0.tar.xz |
Remove PathWithStatus.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Path.inc')
-rw-r--r-- | lib/Support/Unix/Path.inc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 63b0519371..4e877c2296 100644 --- a/lib/Support/Unix/Path.inc +++ b/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 |