summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/interception_linux.h
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-04-25 17:46:29 +0000
committerJulian Lettner <jlettner@apple.com>2019-04-25 17:46:29 +0000
commit8b36610bfa506206149815a9e6448528e9f60b51 (patch)
treea7490d782fe6878d7f9d34db494afe0232a548f7 /compiler-rt/lib/interception/interception_linux.h
parentc19f4f8069722f6804086d4438a0254104242c46 (diff)
downloadbcm5719-llvm-8b36610bfa506206149815a9e6448528e9f60b51.tar.gz
bcm5719-llvm-8b36610bfa506206149815a9e6448528e9f60b51.zip
[NFC][Sanitizer] Extract GetFuncAddr from GetRealFunctionAddress
Summary: Hopefully, this will enable cleanup/removal of GetRealFunctionAddress in follow-up commits. Subscribers: #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D61110 llvm-svn: 359213
Diffstat (limited to 'compiler-rt/lib/interception/interception_linux.h')
-rw-r--r--compiler-rt/lib/interception/interception_linux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/interception/interception_linux.h b/compiler-rt/lib/interception/interception_linux.h
index 35d91954789..4c60bd88090 100644
--- a/compiler-rt/lib/interception/interception_linux.h
+++ b/compiler-rt/lib/interception/interception_linux.h
@@ -25,7 +25,8 @@ namespace __interception {
// returns true if a function with the given name was found.
bool GetRealFunctionAddress(const char *func_name, uptr *func_addr,
uptr real, uptr wrapper);
-void *GetFuncAddrVer(const char *func_name, const char *ver);
+void *GetFuncAddr(const char *name);
+void *GetFuncAddrVer(const char *name, const char *ver);
} // namespace __interception
#define INTERCEPT_FUNCTION_LINUX_OR_FREEBSD(func) \
OpenPOWER on IntegriCloud