aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Valgrind.h
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2011-11-28 00:48:58 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2011-11-28 00:48:58 +0000
commit08b73a30bbb6407c7b48a734a29f65f4c8ddd782 (patch)
tree040bff3119ed96aea1eede023bdf4cfed7d70c68 /include/llvm/Support/Valgrind.h
parent81818fc770bde5e279a1990f269b80da3219907c (diff)
downloadexternal_llvm-08b73a30bbb6407c7b48a734a29f65f4c8ddd782.tar.gz
external_llvm-08b73a30bbb6407c7b48a734a29f65f4c8ddd782.tar.bz2
external_llvm-08b73a30bbb6407c7b48a734a29f65f4c8ddd782.zip
rename ENABLE_THREADS to LLVM_ENABLE_THREADS
Now that it needs to be exported in a public header (Valgrind.h) it should be prefixed to avoid collision with other projects. Add it to llvm-config.h as well. This'll require regenerating the configure script after this commit, but I don't have the required autoconf version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Valgrind.h')
-rw-r--r--include/llvm/Support/Valgrind.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/Valgrind.h b/include/llvm/Support/Valgrind.h
index 9b8d277ecc..e091eb7edc 100644
--- a/include/llvm/Support/Valgrind.h
+++ b/include/llvm/Support/Valgrind.h
@@ -20,7 +20,7 @@
#include "llvm/Config/config.h"
#include <stddef.h>
-#if ENABLE_THREADS != 0 && !defined(NDEBUG)
+#if LLVM_ENABLE_THREADS != 0 && !defined(NDEBUG)
// tsan (Thread Sanitizer) is a valgrind-based tool that detects these exact
// functions by name.
extern "C" {
@@ -42,7 +42,7 @@ namespace sys {
// Otherwise valgrind may continue to execute the old version of the code.
void ValgrindDiscardTranslations(const void *Addr, size_t Len);
-#if ENABLE_THREADS != 0 && !defined(NDEBUG)
+#if LLVM_ENABLE_THREADS != 0 && !defined(NDEBUG)
// Thread Sanitizer is a valgrind tool that finds races in code.
// See http://code.google.com/p/data-race-test/wiki/DynamicAnnotations .