summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-02-11 09:11:18 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-02-11 09:11:18 +0000
commit70e6585f0c7fd6385734ccf9d88fc1ad87e62a0d (patch)
treeb6ab65d32b2f35aff29fe0c3d84f69336b10c574 /llvm/lib/Support
parentc30e0c1728e76601eef9b57ff5c92161549bab68 (diff)
downloadbcm5719-llvm-70e6585f0c7fd6385734ccf9d88fc1ad87e62a0d.tar.gz
bcm5719-llvm-70e6585f0c7fd6385734ccf9d88fc1ad87e62a0d.zip
Remove TimeValue::toPosixTime() -- it is buggy, semantics are unclear, and its
only current user should be using toEpochTime() instead. llvm-svn: 201136
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Unix/Path.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index cda976fdeee..84a5751203e 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -526,7 +526,7 @@ error_code status(int FD, file_status &Result) {
error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
#if defined(HAVE_FUTIMENS)
timespec Times[2];
- Times[0].tv_sec = Time.toPosixTime();
+ Times[0].tv_sec = Time.toEpochTime();
Times[0].tv_nsec = 0;
Times[1] = Times[0];
if (::futimens(FD, Times))
@@ -534,7 +534,7 @@ error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
return error_code::success();
#elif defined(HAVE_FUTIMES)
timeval Times[2];
- Times[0].tv_sec = Time.toPosixTime();
+ Times[0].tv_sec = Time.toEpochTime();
Times[0].tv_usec = 0;
Times[1] = Times[0];
if (::futimes(FD, Times))
OpenPOWER on IntegriCloud