diff options
author | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-10-10 07:11:58 +0000 |
---|---|---|
committer | Viktor Kutuzov <vkutuzov@accesssoftek.com> | 2014-10-10 07:11:58 +0000 |
commit | 45465191968616a0966522d66fca358b56d51e2d (patch) | |
tree | 946c2a2125024c5aa2a68108365c28c7d520bfc2 /compiler-rt | |
parent | e3b6a6a379d5541fc9af0ff8e814a78d96beb749 (diff) | |
download | bcm5719-llvm-45465191968616a0966522d66fca358b56d51e2d.tar.gz bcm5719-llvm-45465191968616a0966522d66fca358b56d51e2d.zip |
[Tsan] Do not use INTERCEPT_FUNCTION_VER() on FreeBSD
Differential Revision: http://reviews.llvm.org/D5708
llvm-svn: 219483
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_interceptors.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc index b2096e26483..d97a928b065 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc @@ -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)) |