From 283e9bcbf4873ddef1049747c0ff7f2efe50d611 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Wed, 12 Feb 2014 10:40:07 +0000 Subject: 'svn add' files I forgot for r201224 (Add an option to allow Clang verify source files for a module only once during) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201225 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/libclang/BuildSystem.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/libclang/BuildSystem.cpp (limited to 'tools/libclang/BuildSystem.cpp') diff --git a/tools/libclang/BuildSystem.cpp b/tools/libclang/BuildSystem.cpp new file mode 100644 index 0000000000..caf8377174 --- /dev/null +++ b/tools/libclang/BuildSystem.cpp @@ -0,0 +1,22 @@ +//===- BuildSystem.cpp - Utilities for use by build systems ---------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements various utilities for use by build systems. +// +//===----------------------------------------------------------------------===// + +#include "clang-c/BuildSystem.h" +#include "llvm/Support/TimeValue.h" + +extern "C" { +unsigned long long clang_getBuildSessionTimestamp(void) { + return llvm::sys::TimeValue::now().toEpochTime(); +} +} // extern "C" + -- cgit v1.2.3