summaryrefslogtreecommitdiff
path: root/lib/asan/asan_mac.cc
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-02-21 14:41:16 +0000
committerAlexander Potapenko <glider@google.com>2013-02-21 14:41:16 +0000
commit50a002ecad3f0a10c136496e5b6289bd3c71590e (patch)
treed9e0a899067d99a83a116704039313166b1ee12b /lib/asan/asan_mac.cc
parent372b267fadcaf73b9d9cee5c8050d3c10e94f74d (diff)
downloadcompiler-rt-50a002ecad3f0a10c136496e5b6289bd3c71590e.tar.gz
compiler-rt-50a002ecad3f0a10c136496e5b6289bd3c71590e.tar.bz2
compiler-rt-50a002ecad3f0a10c136496e5b6289bd3c71590e.tar.xz
[ASan] Refactoring: nuke the redundant function declarations in asan_intercepted_functions.h
that had been used on OS X only. The INTERCEPTOR() macro on OS X is now responsible for declaring the wrapped function, the wrapper and the pair of pointers to them in __DATA,__interposition section. Thus adding an interceptor requires editing a single file now. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_mac.cc')
-rw-r--r--lib/asan/asan_mac.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/asan/asan_mac.cc b/lib/asan/asan_mac.cc
index 3aeb1a5d..0f51a06d 100644
--- a/lib/asan/asan_mac.cc
+++ b/lib/asan/asan_mac.cc
@@ -288,24 +288,6 @@ typedef struct {
u32 parent_tid;
} asan_block_context_t;
-// We use extern declarations of libdispatch functions here instead
-// of including <dispatch/dispatch.h>. This header is not present on
-// Mac OS X Leopard and eariler, and although we don't expect ASan to
-// work on legacy systems, it's bad to break the build of
-// LLVM compiler-rt there.
-extern "C" {
-void dispatch_async_f(dispatch_queue_t dq, void *ctxt,
- dispatch_function_t func);
-void dispatch_sync_f(dispatch_queue_t dq, void *ctxt,
- dispatch_function_t func);
-void dispatch_after_f(dispatch_time_t when, dispatch_queue_t dq, void *ctxt,
- dispatch_function_t func);
-void dispatch_barrier_async_f(dispatch_queue_t dq, void *ctxt,
- dispatch_function_t func);
-void dispatch_group_async_f(dispatch_group_t group, dispatch_queue_t dq,
- void *ctxt, dispatch_function_t func);
-} // extern "C"
-
static ALWAYS_INLINE
void asan_register_worker_thread(int parent_tid, StackTrace *stack) {
AsanThread *t = asanThreadRegistry().GetCurrent();