summaryrefslogtreecommitdiff
path: root/tools/libclang/BuildSystem.cpp
diff options
context:
space:
mode:
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"
+