[NFC][TSan] Don't define GetStackTrace when compiling for Go
rdar://48455255
@@ -49,6 +49,7 @@ void VarSizeStackTrace::ReverseOrder() {
} // namespace __tsan
+#if !SANITIZER_GO
void __sanitizer::GetStackTrace(BufferedStackTrace *stack, uptr max_depth,
uptr pc, uptr bp, void *context,
bool request_fast_unwind) {
@@ -60,3 +61,4 @@ void __sanitizer::GetStackTrace(BufferedStackTrace *stack, uptr max_depth,
} else
stack->Unwind(kStackTraceMax, pc, 0, context, 0, 0, false);
}
+#endif
