Adjust for TimePoint interface change in llvm: D25730. NFC
authorPavel Labath <labath@google.com>
Mon, 24 Oct 2016 10:59:13 +0000 (10:59 +0000)
committerPavel Labath <labath@google.com>
Mon, 24 Oct 2016 10:59:13 +0000 (10:59 +0000)
llvm-svn: 284964

clang/include/clang/Basic/VirtualFileSystem.h
clang/lib/Driver/Tools.cpp

index e977aa6..84db321 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/Support/ErrorOr.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/SourceMgr.h"
+#include "llvm/Support/TimeValue.h"
 #include "llvm/Support/raw_ostream.h"
 #include <utility>
 
index 2467758..7d77cd1 100644 (file)
@@ -5576,9 +5576,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     llvm::sys::fs::file_status Status;
     if (llvm::sys::fs::status(A->getValue(), Status))
       D.Diag(diag::err_drv_no_such_file) << A->getValue();
-    CmdArgs.push_back(Args.MakeArgString(
-        "-fbuild-session-timestamp=" +
-        Twine((uint64_t)Status.getLastModificationTime().toEpochTime())));
+    CmdArgs.push_back(
+        Args.MakeArgString("-fbuild-session-timestamp=" +
+                           Twine((uint64_t)Status.getLastModificationTime()
+                                     .time_since_epoch()
+                                     .count())));
   }
 
   if (Args.getLastArg(options::OPT_fmodules_validate_once_per_build_session)) {