aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-25 06:51:43 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-25 06:51:43 +0000
commitec68482e53befc69e56bab3a3bf9a1269c0f8bcb (patch)
tree19ba59ba64f5860ec9a058fdb157dbd9218387ce /llvm/lib/Support/Unix/Path.inc
parent5aba49ebc3061b01ba921630ecc0d20b5e3f528a (diff)
downloadllvm-ec68482e53befc69e56bab3a3bf9a1269c0f8bcb.zip
llvm-ec68482e53befc69e56bab3a3bf9a1269c0f8bcb.tar.gz
llvm-ec68482e53befc69e56bab3a3bf9a1269c0f8bcb.tar.bz2
Revert "Add lastAccessedTime to file_status"
This reverts commit r264387. Bots are broken in various ways, I need to take one commit at a time... From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 264390
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc11
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index a80e0dd..d5a31ca 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -174,12 +174,6 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
return "";
}
-TimeValue file_status::getLastAccessedTime() const {
- TimeValue Ret;
- Ret.fromEpochTime(fs_st_atime);
- return Ret;
-}
-
TimeValue file_status::getLastModificationTime() const {
TimeValue Ret;
Ret.fromEpochTime(fs_st_mtime);
@@ -379,9 +373,8 @@ static std::error_code fillStatus(int StatRet, const struct stat &Status,
perms Perms = static_cast<perms>(Status.st_mode);
Result =
- file_status(Type, Perms, Status.st_dev, Status.st_ino, Status.st_atime,
- Status.st_mtime, Status.st_uid, Status.st_gid,
- Status.st_size);
+ file_status(Type, Perms, Status.st_dev, Status.st_ino, Status.st_mtime,
+ Status.st_uid, Status.st_gid, Status.st_size);
return std::error_code();
}