summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception_win.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-08-02 11:29:14 +0000
committerAlexey Samsonov <samsonov@google.com>2012-08-02 11:29:14 +0000
commit9d74295078dc7d63d3de567e41fba2f7c78a9608 (patch)
tree7daa3e57d675b7448f520c17d8fd4d4df0ca2128 /compiler-rt/lib/interception/interception_win.h
parent0f840bd2409ca859902cbeca02ed3decd2c8576d (diff)
downloadbcm5719-llvm-9d74295078dc7d63d3de567e41fba2f7c78a9608.tar.gz
bcm5719-llvm-9d74295078dc7d63d3de567e41fba2f7c78a9608.zip
Follow-up for r161168 for Windows
llvm-svn: 161169
Diffstat (limited to 'compiler-rt/lib/interception/interception_win.h')
-rw-r--r--compiler-rt/lib/interception/interception_win.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/compiler-rt/lib/interception/interception_win.h b/compiler-rt/lib/interception/interception_win.h
index 9d1586ecb17..c64af1baffe 100644
--- a/compiler-rt/lib/interception/interception_win.h
+++ b/compiler-rt/lib/interception/interception_win.h
@@ -23,19 +23,22 @@
namespace __interception {
// returns true if a function with the given name was found.
-bool GetRealFunctionAddress(const char *func_name, void **func_addr);
+bool GetRealFunctionAddress(const char *func_name, uptr *func_addr);
// returns true if the old function existed, false on failure.
-bool OverrideFunction(void *old_func, void *new_func, void **orig_old_func);
+bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func);
} // namespace __interception
#if defined(_DLL)
# define INTERCEPT_FUNCTION_WIN(func) \
- ::__interception::GetRealFunctionAddress(#func, (void**)&REAL(func))
+ ::__interception::GetRealFunctionAddress( \
+ #func, (::__interception::uptr*)&REAL(func))
#else
# define INTERCEPT_FUNCTION_WIN(func) \
- ::__interception::OverrideFunction((void*)func, (void*)WRAP(func), \
- (void**)&REAL(func))
+ ::__interception::OverrideFunction( \
+ (::__interception::uptr)func, \
+ (::__interception::uptr)WRAP(func), \
+ (::__interception::uptr*)&REAL(func))
#endif
#endif // INTERCEPTION_WIN_H
OpenPOWER on IntegriCloud