diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-03-21 13:00:04 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-03-21 13:00:04 +0000 |
commit | 8ada45553d2969f13a27a71710656a1d23e3d0dc (patch) | |
tree | b1c944a75a3015e24257aeb9f1903c3d6e148a76 /compiler-rt | |
parent | 9ce04b0c36ee4767d59a1032ed9df0a4c98abe80 (diff) | |
download | bcm5719-llvm-8ada45553d2969f13a27a71710656a1d23e3d0dc.tar.gz bcm5719-llvm-8ada45553d2969f13a27a71710656a1d23e3d0dc.zip |
[asan]: substitute extern decls with system header in asan_mac.cc
llvm-svn: 153182
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/asan/asan_mac.cc | 16 |
1 files changed, 3 insertions, 13 deletions
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 <crt_externs.h> // for _NSGetEnviron +#include <dispatch/dispatch.h> #include <mach-o/dyld.h> #include <mach-o/loader.h> #include <sys/mman.h> @@ -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 <dispatch/dispatch.h>. 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); |