diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-11-28 22:14:02 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-11-28 22:14:02 +0000 |
commit | 76c6299f88e923a4be1f05367ac465634452cb86 (patch) | |
tree | ea3e0b08f8fa24460b6350a9ee166564ea050ba8 /llvm/lib/Support/Valgrind.cpp | |
parent | b843b0be6b1d67a67c8400d1486b2875b3523151 (diff) | |
download | bcm5719-llvm-76c6299f88e923a4be1f05367ac465634452cb86.tar.gz bcm5719-llvm-76c6299f88e923a4be1f05367ac465634452cb86.zip |
Don't define these unless we plan to use them.
llvm-svn: 145289
Diffstat (limited to 'llvm/lib/Support/Valgrind.cpp')
-rw-r--r-- | llvm/lib/Support/Valgrind.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Valgrind.cpp b/llvm/lib/Support/Valgrind.cpp index 078d705183d..2b250a35775 100644 --- a/llvm/lib/Support/Valgrind.cpp +++ b/llvm/lib/Support/Valgrind.cpp @@ -53,6 +53,7 @@ void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) { #endif // !HAVE_VALGRIND_VALGRIND_H +#if LLVM_ENABLE_THREADS != 0 && !defined(NDEBUG) // These functions require no implementation, tsan just looks at the arguments // they're called with. extern "C" { @@ -63,3 +64,4 @@ void AnnotateHappensAfter(const char *file, int line, void AnnotateIgnoreWritesBegin(const char *file, int line) {} void AnnotateIgnoreWritesEnd(const char *file, int line) {} } +#endif |