summaryrefslogtreecommitdiff
path: root/lib/asan/asan_malloc_mac.cc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-12-01 23:35:47 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-12-01 23:35:47 +0000
commitc1ef2a0b8022f200f8bbb36641df866c4369876d (patch)
treef3e9779bb756b8932fe2c646929594d7b0f55c2a /lib/asan/asan_malloc_mac.cc
parentd6567c5166412f6acdde851e767c26f332d51d3d (diff)
downloadcompiler-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.cc6
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();