summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception.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.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.h')
-rw-r--r--compiler-rt/lib/interception/interception.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/interception.h b/compiler-rt/lib/interception/interception.h
index cc8d7b0d249..baddd6c132c 100644
--- a/compiler-rt/lib/interception/interception.h
+++ b/compiler-rt/lib/interception/interception.h
@@ -238,12 +238,18 @@ typedef unsigned long uptr; // NOLINT
#if defined(__linux__)
# include "interception_linux.h"
# define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_LINUX(func)
+# define INTERCEPT_FUNCTION_VER(func, symver) \
+ INTERCEPT_FUNCTION_VER_LINUX(func, symver)
#elif defined(__APPLE__)
# include "interception_mac.h"
# define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_MAC(func)
+# define INTERCEPT_FUNCTION_VER(func, symver) \
+ INTERCEPT_FUNCTION_VER_MAC(func, symver)
#else // defined(_WIN32)
# include "interception_win.h"
# define INTERCEPT_FUNCTION(func) INTERCEPT_FUNCTION_WIN(func)
+# define INTERCEPT_FUNCTION_VER(func, symver) \
+ INTERCEPT_FUNCTION_VER_WIN(func, symver)
#endif
#undef INCLUDED_FROM_INTERCEPTION_LIB
OpenPOWER on IntegriCloud