[compiler-rt] r178009 - asan/tsan: change SANITIZER_GO to more general SANITIZER_SUPPORTS_WEAK_HOOKS
Dmitry Vyukov
dvyukov at google.com
Tue Mar 26 05:07:04 PDT 2013
Author: dvyukov
Date: Tue Mar 26 07:07:04 2013
New Revision: 178009
URL: http://llvm.org/viewvc/llvm-project?rev=178009&view=rev
Log:
asan/tsan: change SANITIZER_GO to more general SANITIZER_SUPPORTS_WEAK_HOOKS
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc?rev=178009&r1=178008&r2=178009&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc Tue Mar 26 07:07:04 2013
@@ -174,14 +174,14 @@ void SetPrintfAndReportCallback(void (*c
}
// 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)
More information about the llvm-commits
mailing list