diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-12-01 23:35:47 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-12-01 23:35:47 +0000 |
commit | c1ef2a0b8022f200f8bbb36641df866c4369876d (patch) | |
tree | f3e9779bb756b8932fe2c646929594d7b0f55c2a /lib/asan/asan_malloc_mac.cc | |
parent | d6567c5166412f6acdde851e767c26f332d51d3d (diff) | |
download | compiler-rt-c1ef2a0b8022f200f8bbb36641df866c4369876d.tar.gz |
asan: #if 0 out some unused functions (we build with -Werror).
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_malloc_mac.cc')
-rw-r--r-- | lib/asan/asan_malloc_mac.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/asan/asan_malloc_mac.cc b/lib/asan/asan_malloc_mac.cc index 3ef17eb8e..8a6f1bc41 100644 --- a/lib/asan/asan_malloc_mac.cc +++ b/lib/asan/asan_malloc_mac.cc @@ -241,11 +241,14 @@ void *mz_memalign(malloc_zone_t *zone, size_t align, size_t size) { return asan_memalign(align, size, &stack); } +// This function is currently unused, and we build with -Werror. +#if 0 void mz_free_definite_size(malloc_zone_t* zone, void *ptr, size_t size) { // TODO(glider): check that |size| is valid. UNIMPLEMENTED(); } #endif +#endif // malloc_introspection callbacks. I'm not clear on what all of these do. kern_return_t mi_enumerator(task_t task, void *, @@ -283,6 +286,8 @@ void mi_force_unlock(malloc_zone_t *zone) { __asan_mz_force_unlock(); } +// This function is currently unused, and we build with -Werror. +#if 0 void mi_statistics(malloc_zone_t *zone, malloc_statistics_t *stats) { // TODO(csilvers): figure out how to fill these out // TODO(glider): port this from tcmalloc when ready. @@ -291,6 +296,7 @@ void mi_statistics(malloc_zone_t *zone, malloc_statistics_t *stats) { stats->max_size_in_use = 0; stats->size_allocated = 0; } +#endif boolean_t mi_zone_locked(malloc_zone_t *zone) { // UNIMPLEMENTED(); |