summaryrefslogtreecommitdiff
path: root/tools/libclang/BuildSystem.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2014-02-12 10:40:07 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2014-02-12 10:40:07 +0000
commit283e9bcbf4873ddef1049747c0ff7f2efe50d611 (patch)
treed5201e88ffa10fafc6555f558c13980c29fefa2d /tools/libclang/BuildSystem.cpp
parent337c8c682f2e5c55f6ed66fa770602c95e7b223b (diff)
downloadclang-283e9bcbf4873ddef1049747c0ff7f2efe50d611.tar.gz
clang-283e9bcbf4873ddef1049747c0ff7f2efe50d611.tar.bz2
clang-283e9bcbf4873ddef1049747c0ff7f2efe50d611.tar.xz
'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
Diffstat (limited to 'tools/libclang/BuildSystem.cpp')
-rw-r--r--tools/libclang/BuildSystem.cpp22
1 files changed, 22 insertions, 0 deletions
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"
+