[compiler-rt] r229395 - tsan: fix freebsd build
Dmitry Vyukov
dvyukov at google.com
Mon Feb 16 06:35:51 PST 2015
Author: dvyukov
Date: Mon Feb 16 08:35:51 2015
New Revision: 229395
URL: http://llvm.org/viewvc/llvm-project?rev=229395&view=rev
Log:
tsan: fix freebsd build
GetTls is not defined in Go mode.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc?rev=229395&r1=229394&r2=229395&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Mon Feb 16 08:35:51 2015
@@ -298,6 +298,7 @@ static void GetTls(uptr *addr, uptr *siz
}
#endif
+#if !SANITIZER_GO
uptr GetTlsSize() {
#if SANITIZER_FREEBSD
uptr addr, size;
@@ -307,6 +308,7 @@ uptr GetTlsSize() {
return g_tls_size;
#endif
}
+#endif
void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,
uptr *tls_addr, uptr *tls_size) {
More information about the llvm-commits
mailing list