[llvm-commits] [compiler-rt] r145645 - /compiler-rt/trunk/lib/asan/asan_malloc_mac.cc

Daniel Dunbar daniel at zuster.org
Thu Dec 1 15:35:47 PST 2011


Author: ddunbar
Date: Thu Dec  1 17:35:47 2011
New Revision: 145645

URL: http://llvm.org/viewvc/llvm-project?rev=145645&view=rev
Log:
asan: #if 0 out some unused functions (we build with -Werror).

Modified:
    compiler-rt/trunk/lib/asan/asan_malloc_mac.cc

Modified: compiler-rt/trunk/lib/asan/asan_malloc_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_malloc_mac.cc?rev=145645&r1=145644&r2=145645&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_malloc_mac.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_malloc_mac.cc Thu Dec  1 17:35:47 2011
@@ -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();





More information about the llvm-commits mailing list