]> granicus.if.org Git - clang/commitdiff
Replace TimeValue with TimePoint in BuildSystem.cpp. NFC.
authorPavel Labath <labath@google.com>
Wed, 9 Nov 2016 11:19:39 +0000 (11:19 +0000)
committerPavel Labath <labath@google.com>
Wed, 9 Nov 2016 11:19:39 +0000 (11:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286357 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/BuildSystem.cpp

index fe3db755eba83dd8cc490a12d55afd5c4794980b..99aa5b6f2ff0ddf5391e58ea1811fb41c979b21c 100644 (file)
 #include "clang/Basic/VirtualFileSystem.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/CBindingWrapping.h"
+#include "llvm/Support/Chrono.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/TimeValue.h"
 #include "llvm/Support/raw_ostream.h"
 
 using namespace clang;
 using namespace llvm::sys;
 
 unsigned long long clang_getBuildSessionTimestamp(void) {
-  return llvm::sys::TimeValue::now().toEpochTime();
+  return llvm::sys::toTimeT(std::chrono::system_clock::now());
 }
 
 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(clang::vfs::YAMLVFSWriter,