summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception_linux.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-16 08:20:31 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-16 08:20:31 +0000
commitedecc3839553adedd004b87081b9fa248df7a428 (patch)
tree9a783cccbfde21bef775c094c468276b86a25aa5 /compiler-rt/lib/interception/interception_linux.h
parentc2ccbaffa334bdd7f1c4923589543001cfff7b5c (diff)
downloadbcm5719-llvm-edecc3839553adedd004b87081b9fa248df7a428.tar.gz
bcm5719-llvm-edecc3839553adedd004b87081b9fa248df7a428.zip
Make some pthread_mutex_* and pthread_cond_* interceptors common.
Reviewers: eugenis, dvyukov Reviewed By: dvyukov CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1937 llvm-svn: 192774
Diffstat (limited to 'compiler-rt/lib/interception/interception_linux.h')
-rw-r--r--compiler-rt/lib/interception/interception_linux.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler-rt/lib/interception/interception_linux.h b/compiler-rt/lib/interception/interception_linux.h
index 8f7a706fcf4..b2f74d105eb 100644
--- a/compiler-rt/lib/interception/interception_linux.h
+++ b/compiler-rt/lib/interception/interception_linux.h
@@ -35,9 +35,12 @@ void *GetFuncAddrVer(const char *func_name, const char *ver);
(::__interception::uptr)&WRAP(func))
#if !defined(__ANDROID__) // android does not have dlvsym
-#define INTERCEPT_FUNCTION_VER(func, symver) \
- ::__interception::real_##func = (func##_f)(unsigned long) \
- ::__interception::GetFuncAddrVer(#func, #symver)
+# define INTERCEPT_FUNCTION_VER_LINUX(func, symver) \
+ ::__interception::real_##func = (func##_f)(unsigned long) \
+ ::__interception::GetFuncAddrVer(#func, #symver)
+#else
+# define INTERCEPT_FUNCTION_VER_LINUX(func, symver) \
+ INTERCEPT_FUNCTION_LINUX(func)
#endif // !defined(__ANDROID__)
#endif // INTERCEPTION_LINUX_H
OpenPOWER on IntegriCloud