[llvm-commits] [llvm] r145289 - /llvm/trunk/lib/Support/Valgrind.cpp

Nick Lewycky nicholas at mxc.ca
Mon Nov 28 14:14:02 PST 2011


Author: nicholas
Date: Mon Nov 28 16:14:02 2011
New Revision: 145289

URL: http://llvm.org/viewvc/llvm-project?rev=145289&view=rev
Log:
Don't define these unless we plan to use them.

Modified:
    llvm/trunk/lib/Support/Valgrind.cpp

Modified: llvm/trunk/lib/Support/Valgrind.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Valgrind.cpp?rev=145289&r1=145288&r2=145289&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Valgrind.cpp (original)
+++ llvm/trunk/lib/Support/Valgrind.cpp Mon Nov 28 16:14:02 2011
@@ -53,6 +53,7 @@
 
 #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 AnnotateIgnoreWritesBegin(const char *file, int line) {}
 void AnnotateIgnoreWritesEnd(const char *file, int line) {}
 }
+#endif





More information about the llvm-commits mailing list