summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Valgrind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Valgrind.cpp')
-rw-r--r--llvm/lib/Support/Valgrind.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Support/Valgrind.cpp b/llvm/lib/Support/Valgrind.cpp
index 703448524ed..078d705183d 100644
--- a/llvm/lib/Support/Valgrind.cpp
+++ b/llvm/lib/Support/Valgrind.cpp
@@ -52,3 +52,14 @@ void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) {
}
#endif // !HAVE_VALGRIND_VALGRIND_H
+
+// These functions require no implementation, tsan just looks at the arguments
+// they're called with.
+extern "C" {
+void AnnotateHappensBefore(const char *file, int line,
+ const volatile void *cv) {}
+void AnnotateHappensAfter(const char *file, int line,
+ const volatile void *cv) {}
+void AnnotateIgnoreWritesBegin(const char *file, int line) {}
+void AnnotateIgnoreWritesEnd(const char *file, int line) {}
+}
OpenPOWER on IntegriCloud