From beb0403319a2b449c0db2cacdfef77061cdc6029 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Wed, 9 Oct 2019 22:57:07 +0000 Subject: [sanitizer_common] Remove OnPrint from Go build. Summary: Go now uses __sanitizer_on_print instead. Reviewers: vitalybuka, dvyukov Reviewed By: vitalybuka Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68621 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@374258 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_printf.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/sanitizer_common/sanitizer_printf.cpp b/lib/sanitizer_common/sanitizer_printf.cpp index 7063de257..a03278711 100644 --- a/lib/sanitizer_common/sanitizer_printf.cpp +++ b/lib/sanitizer_common/sanitizer_printf.cpp @@ -229,8 +229,6 @@ void SetPrintfAndReportCallback(void (*callback)(const char *)) { // Can be overriden in frontend. #if SANITIZER_GO && defined(TSAN_EXTERNAL_HOOKS) // Implementation must be defined in frontend. -// TODO(morehouse): Remove OnPrint after migrating Go to __sanitizer_on_print. -extern "C" void OnPrint(const char *str); extern "C" void __sanitizer_on_print(const char *str); #else SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_on_print, const char *str) { @@ -239,10 +237,6 @@ SANITIZER_INTERFACE_WEAK_DEF(void, __sanitizer_on_print, const char *str) { #endif static void CallPrintfAndReportCallback(const char *str) { -#if SANITIZER_GO && defined(TSAN_EXTERNAL_HOOKS) - // TODO(morehouse): Remove OnPrint after migrating Go to __sanitizer_on_print. - OnPrint(str); -#endif __sanitizer_on_print(str); if (PrintfAndReportCallback) PrintfAndReportCallback(str); -- cgit v1.2.1