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
diff --git a/lib/asan/asan_malloc_mac.cc b/lib/asan/asan_malloc_mac.cc
index 3ef17eb..8a6f1bc 100644
--- a/lib/asan/asan_malloc_mac.cc
+++ b/lib/asan/asan_malloc_mac.cc
@@ -241,11 +241,14 @@
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 @@
__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 @@
stats->max_size_in_use = 0;
stats->size_allocated = 0;
}
+#endif
boolean_t mi_zone_locked(malloc_zone_t *zone) {
// UNIMPLEMENTED();