[sanitizer] Avoid needless use of stringification (#symver) in INTERCEPT_FUNCTION_VER.

This is a workaround for clang-format bug (PR17874).

llvm-svn: 194468
This commit is contained in:
Evgeniy Stepanov 2013-11-12 10:21:52 +00:00
parent 44657ef6e5
commit 90e12a6cb2
3 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@ void *GetFuncAddrVer(const char *func_name, const char *ver);
#if !defined(__ANDROID__) // android does not have dlvsym
# define INTERCEPT_FUNCTION_VER_LINUX(func, symver) \
::__interception::real_##func = (func##_f)(unsigned long) \
::__interception::GetFuncAddrVer(#func, #symver)
::__interception::GetFuncAddrVer(#func, symver)
#else
# define INTERCEPT_FUNCTION_VER_LINUX(func, symver) \
INTERCEPT_FUNCTION_LINUX(func)

View File

@ -2231,13 +2231,13 @@ INTERCEPTOR(int, pthread_cond_broadcast, void *c) {
}
#define INIT_PTHREAD_COND_WAIT \
INTERCEPT_FUNCTION_VER(pthread_cond_wait, GLIBC_2.3.2)
INTERCEPT_FUNCTION_VER(pthread_cond_wait, "GLIBC_2.3.2")
#define INIT_PTHREAD_COND_INIT \
INTERCEPT_FUNCTION_VER(pthread_cond_init, GLIBC_2.3.2)
INTERCEPT_FUNCTION_VER(pthread_cond_init, "GLIBC_2.3.2")
#define INIT_PTHREAD_COND_SIGNAL \
INTERCEPT_FUNCTION_VER(pthread_cond_signal, GLIBC_2.3.2)
INTERCEPT_FUNCTION_VER(pthread_cond_signal, "GLIBC_2.3.2")
#define INIT_PTHREAD_COND_BROADCAST \
INTERCEPT_FUNCTION_VER(pthread_cond_broadcast, GLIBC_2.3.2)
INTERCEPT_FUNCTION_VER(pthread_cond_broadcast, "GLIBC_2.3.2")
#else
#define INIT_PTHREAD_COND_WAIT
#define INIT_PTHREAD_COND_INIT

View File

@ -2103,8 +2103,8 @@ void InitializeInterceptors() {
TSAN_INTERCEPT(pthread_rwlock_timedwrlock);
TSAN_INTERCEPT(pthread_rwlock_unlock);
INTERCEPT_FUNCTION_VER(pthread_cond_destroy, GLIBC_2.3.2);
INTERCEPT_FUNCTION_VER(pthread_cond_timedwait, GLIBC_2.3.2);
INTERCEPT_FUNCTION_VER(pthread_cond_destroy, "GLIBC_2.3.2");
INTERCEPT_FUNCTION_VER(pthread_cond_timedwait, "GLIBC_2.3.2");
TSAN_INTERCEPT(pthread_barrier_init);
TSAN_INTERCEPT(pthread_barrier_destroy);