summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ar/llvm-ar.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2016-10-24 13:38:27 +0000
committerPavel Labath <labath@google.com>2016-10-24 13:38:27 +0000
commitbff47b51b68906f9239eaccd692174d4c45bea2c (patch)
tree08b8212689bdb4b49b8b62cf3b125679a1f66532 /llvm/tools/llvm-ar/llvm-ar.cpp
parent504bf334b06b315d739297c29dc416fe77d7ad9e (diff)
downloadbcm5719-llvm-bff47b51b68906f9239eaccd692174d4c45bea2c.tar.gz
bcm5719-llvm-bff47b51b68906f9239eaccd692174d4c45bea2c.zip
[Object] Replace TimeValue with std::chrono
Summary: Most of the changes are very straight-forward. The only choice I had to make was to use second-precision time points in the Archive classes. I did this because the archive files use that precision in the on-disk representation anyway. Reviewers: rafael, zturner Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D25773 llvm-svn: 284974
Diffstat (limited to 'llvm/tools/llvm-ar/llvm-ar.cpp')
-rw-r--r--llvm/tools/llvm-ar/llvm-ar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp
index 18a5f2497f4..a59eec9cf9f 100644
--- a/llvm/tools/llvm-ar/llvm-ar.cpp
+++ b/llvm/tools/llvm-ar/llvm-ar.cpp
@@ -528,7 +528,7 @@ static InsertAction computeInsertAction(ArchiveOperation Operation,
failIfError(sys::fs::status(*MI, Status), *MI);
auto ModTimeOrErr = Member.getLastModified();
failIfError(ModTimeOrErr.takeError());
- if (sys::TimeValue(Status.getLastModificationTime()) < ModTimeOrErr.get()) {
+ if (Status.getLastModificationTime() < ModTimeOrErr.get()) {
if (PosName.empty())
return IA_AddOldMember;
return IA_MoveOldMember;
OpenPOWER on IntegriCloud