diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2015-08-18 22:31:24 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-08-18 22:31:24 +0000 |
commit | 4cfa086df275f673591c356dda5c0f3c6b114127 (patch) | |
tree | b17dbfd986c2d63fa9cf0d35b60495f528bf5b60 /llvm/lib/Support/Valgrind.cpp | |
parent | 2ad6ac546177204bdb224c614619fc5ca0181a35 (diff) | |
download | bcm5719-llvm-4cfa086df275f673591c356dda5c0f3c6b114127.tar.gz bcm5719-llvm-4cfa086df275f673591c356dda5c0f3c6b114127.zip |
Support: Clean up TSan annotations.
Remove support for Valgrind-based TSan, which hasn't been maintained for a
few years. We now use the TSan annotations only if LLVM is compiled with
-fsanitize=thread. We no longer need the weak function definitions as we
are guaranteed that our program is linked directly with the TSan runtime.
Differential Revision: http://reviews.llvm.org/D12121
llvm-svn: 245374
Diffstat (limited to 'llvm/lib/Support/Valgrind.cpp')
-rw-r--r-- | llvm/lib/Support/Valgrind.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/Support/Valgrind.cpp b/llvm/lib/Support/Valgrind.cpp index facf8d927ec..703448524ed 100644 --- a/llvm/lib/Support/Valgrind.cpp +++ b/llvm/lib/Support/Valgrind.cpp @@ -52,23 +52,3 @@ 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. However, they are required to be weak as some other -// application or library may already be providing these definitions for the -// same reason we are. -extern "C" { -LLVM_ATTRIBUTE_WEAK void AnnotateHappensAfter(const char *file, int line, - const volatile void *cv); -void AnnotateHappensAfter(const char *file, int line, const volatile void *cv) { -} -LLVM_ATTRIBUTE_WEAK void AnnotateHappensBefore(const char *file, int line, - const volatile void *cv); -void AnnotateHappensBefore(const char *file, int line, - const volatile void *cv) {} -LLVM_ATTRIBUTE_WEAK void AnnotateIgnoreWritesBegin(const char *file, int line); -void AnnotateIgnoreWritesBegin(const char *file, int line) {} -LLVM_ATTRIBUTE_WEAK void AnnotateIgnoreWritesEnd(const char *file, int line); -void AnnotateIgnoreWritesEnd(const char *file, int line) {} -} - |