diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-26 12:07:04 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-26 12:07:04 +0000 |
commit | 1700fd368edc7c52281231a8ddb898f1abf185d2 (patch) | |
tree | 9d981ca193853f880e6420ac61e1731bddfa68f8 /lib/sanitizer_common/sanitizer_printf.cc | |
parent | 9ae2883d88dd28b9c5dc862107e6e6d12a35926e (diff) |
asan/tsan: change SANITIZER_GO to more general SANITIZER_SUPPORTS_WEAK_HOOKS
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_printf.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc index 0b6c9c6b7..84a8d8032 100644 --- a/lib/sanitizer_common/sanitizer_printf.cc +++ b/lib/sanitizer_common/sanitizer_printf.cc @@ -174,14 +174,14 @@ void SetPrintfAndReportCallback(void (*callback)(const char *)) { } // Can be overriden in frontend. -#ifndef SANITIZER_GO +#ifndef SANITIZER_SUPPORTS_WEAK_HOOKS SANITIZER_INTERFACE_ATTRIBUTE void WEAK OnPrint(const char *str) { (void)str; } #endif static void CallPrintfAndReportCallback(const char *str) { -#ifndef SANITIZER_GO +#ifndef SANITIZER_SUPPORTS_WEAK_HOOKS OnPrint(str); #endif if (PrintfAndReportCallback) |