[compiler-rt] r219483 - [Tsan] Do not use INTERCEPT_FUNCTION_VER() on FreeBSD

Viktor Kutuzov vkutuzov at accesssoftek.com
Fri Oct 10 00:11:58 PDT 2014


Author: vkutuzov
Date: Fri Oct 10 02:11:58 2014
New Revision: 219483

URL: http://llvm.org/viewvc/llvm-project?rev=219483&view=rev
Log:
[Tsan] Do not use INTERCEPT_FUNCTION_VER() on FreeBSD
Differential Revision: http://reviews.llvm.org/D5708

Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=219483&r1=219482&r2=219483&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Fri Oct 10 02:11:58 2014
@@ -232,7 +232,11 @@ ScopedInterceptor::~ScopedInterceptor()
 
 #define TSAN_INTERCEPTOR(ret, func, ...) INTERCEPTOR(ret, func, __VA_ARGS__)
 #define TSAN_INTERCEPT(func) INTERCEPT_FUNCTION(func)
-#define TSAN_INTERCEPT_VER(func, ver) INTERCEPT_FUNCTION_VER(func, ver)
+#if SANITIZER_FREEBSD
+# define TSAN_INTERCEPT_VER(func, ver) INTERCEPT_FUNCTION(func)
+#else
+# define TSAN_INTERCEPT_VER(func, ver) INTERCEPT_FUNCTION_VER(func, ver)
+#endif
 
 #define BLOCK_REAL(name) (BlockingCall(thr), REAL(name))
 





More information about the llvm-commits mailing list