diff options
author | Matt Morehouse <mascasa@google.com> | 2019-10-09 22:57:07 +0000 |
---|---|---|
committer | Matt Morehouse <mascasa@google.com> | 2019-10-09 22:57:07 +0000 |
commit | da6cb7ba4c730e2b9ff4fc8508981483c20a0ab5 (patch) | |
tree | e0a8e5bd9ef38cb93691a2330500dd7a2c9c4ac1 | |
parent | f8bf7d7f42f28fa18144091022236208e199f331 (diff) | |
download | bcm5719-llvm-da6cb7ba4c730e2b9ff4fc8508981483c20a0ab5.tar.gz bcm5719-llvm-da6cb7ba4c730e2b9ff4fc8508981483c20a0ab5.zip |
[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
llvm-svn: 374258
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_printf.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cpp index 7063de257a9..a032787114b 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cpp +++ b/compiler-rt/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); |