diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-08-13 11:42:45 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-08-13 11:42:45 +0000 |
commit | 3c80c6c574850106481f82b9e23d1c728458d4a9 (patch) | |
tree | 0c3299699a77a0c6306c5075d6018515046735d8 /lib/asan/asan_allocator.h | |
parent | e4c3c84e9d470ebe5bae3a28358f28c7f652e5a6 (diff) | |
download | compiler-rt-3c80c6c574850106481f82b9e23d1c728458d4a9.tar.gz |
Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_allocator.h')
-rw-r--r-- | lib/asan/asan_allocator.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/asan/asan_allocator.h b/lib/asan/asan_allocator.h index f817ce352..7e363c35f 100644 --- a/lib/asan/asan_allocator.h +++ b/lib/asan/asan_allocator.h @@ -102,10 +102,13 @@ struct AsanThreadLocalMallocStorage { void CommitBack(); }; +SANITIZER_INTERFACE_ATTRIBUTE void *asan_memalign(uptr alignment, uptr size, StackTrace *stack, AllocType alloc_type); +SANITIZER_INTERFACE_ATTRIBUTE void asan_free(void *ptr, StackTrace *stack, AllocType alloc_type); +SANITIZER_INTERFACE_ATTRIBUTE void *asan_malloc(uptr size, StackTrace *stack); void *asan_calloc(uptr nmemb, uptr size, StackTrace *stack); void *asan_realloc(void *p, uptr size, StackTrace *stack); @@ -114,6 +117,7 @@ void *asan_pvalloc(uptr size, StackTrace *stack); int asan_posix_memalign(void **memptr, uptr alignment, uptr size, StackTrace *stack); +SANITIZER_INTERFACE_ATTRIBUTE uptr asan_malloc_usable_size(void *ptr, StackTrace *stack); uptr asan_mz_size(const void *ptr); |