From 2199e7da52ada03fa646b544fd6f23a18ed7bd9b Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 9 Nov 2016 11:19:39 +0000 Subject: [PATCH] Replace TimeValue with TimePoint in BuildSystem.cpp. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286357 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/BuildSystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libclang/BuildSystem.cpp b/tools/libclang/BuildSystem.cpp index fe3db755eb..99aa5b6f2f 100644 --- a/tools/libclang/BuildSystem.cpp +++ b/tools/libclang/BuildSystem.cpp @@ -16,15 +16,15 @@ #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, -- 2.40.0