From 8ada45553d2969f13a27a71710656a1d23e3d0dc Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 21 Mar 2012 13:00:04 +0000 Subject: [asan]: substitute extern decls with system header in asan_mac.cc llvm-svn: 153182 --- compiler-rt/lib/asan/asan_mac.cc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'compiler-rt') diff --git a/compiler-rt/lib/asan/asan_mac.cc b/compiler-rt/lib/asan/asan_mac.cc index e3d590fa3d0..e4fb5c248da 100644 --- a/compiler-rt/lib/asan/asan_mac.cc +++ b/compiler-rt/lib/asan/asan_mac.cc @@ -23,6 +23,7 @@ #include "asan_thread_registry.h" #include // for _NSGetEnviron +#include #include #include #include @@ -429,11 +430,6 @@ mach_error_t __interception_deallocate_island(void *ptr) { typedef void* pthread_workqueue_t; typedef void* pthread_workitem_handle_t; - -typedef void* dispatch_group_t; -typedef void* dispatch_queue_t; -typedef uint64_t dispatch_time_t; -typedef void (*dispatch_function_t)(void *block); typedef void* (*worker_t)(void *block); // A wrapper for the ObjC blocks used to support libdispatch. @@ -444,16 +440,10 @@ typedef struct { } asan_block_context_t; 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); +// dispatch_barrier_async_f() is not declared in . 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); +// Neither is pthread_workqueue_additem_np(). int pthread_workqueue_additem_np(pthread_workqueue_t workq, void *(*workitem_func)(void *), void * workitem_arg, pthread_workitem_handle_t * itemhandlep, unsigned int *gencountp); -- cgit v1.2.3