[PATCH] D53167: [interception] Switch to _type suffix instead of _f, NFC.
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 13:57:00 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL344954: [interception] Switch to _type suffix instead of _f, NFC. (authored by kuba.brecka, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D53167?vs=169296&id=170492#toc
Repository:
rL LLVM
https://reviews.llvm.org/D53167
Files:
compiler-rt/trunk/lib/interception/interception.h
compiler-rt/trunk/lib/interception/interception_linux.h
Index: compiler-rt/trunk/lib/interception/interception.h
===================================================================
--- compiler-rt/trunk/lib/interception/interception.h
+++ compiler-rt/trunk/lib/interception/interception.h
@@ -170,7 +170,7 @@
#elif !SANITIZER_MAC
# define PTR_TO_REAL(x) real_##x
# define REAL(x) __interception::PTR_TO_REAL(x)
-# define FUNC_TYPE(x) x##_f
+# define FUNC_TYPE(x) x##_type
# define DECLARE_REAL(ret_type, func, ...) \
typedef ret_type (*FUNC_TYPE(func))(__VA_ARGS__); \
Index: compiler-rt/trunk/lib/interception/interception_linux.h
===================================================================
--- compiler-rt/trunk/lib/interception/interception_linux.h
+++ compiler-rt/trunk/lib/interception/interception_linux.h
@@ -38,7 +38,7 @@
// Android, Solaris and OpenBSD do not have dlvsym
#if !SANITIZER_ANDROID && !SANITIZER_SOLARIS && !SANITIZER_OPENBSD
#define INTERCEPT_FUNCTION_VER_LINUX_OR_FREEBSD(func, symver) \
- (::__interception::real_##func = (func##_f)( \
+ (::__interception::real_##func = (func##_type)( \
unsigned long)::__interception::GetFuncAddrVer(#func, symver))
#else
#define INTERCEPT_FUNCTION_VER_LINUX_OR_FREEBSD(func, symver) \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53167.170492.patch
Type: text/x-patch
Size: 1255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/20d892f9/attachment.bin>
More information about the llvm-commits
mailing list