[compiler-rt] r271474 - [asan] fix arm build

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 1 21:01:58 PDT 2016


Author: kcc
Date: Wed Jun  1 23:01:58 2016
New Revision: 271474

URL: http://llvm.org/viewvc/llvm-project?rev=271474&view=rev
Log:
[asan] fix arm build

Modified:
    compiler-rt/trunk/include/sanitizer/common_interface_defs.h
    compiler-rt/trunk/lib/asan/asan_memory_profile.cc

Modified: compiler-rt/trunk/include/sanitizer/common_interface_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/common_interface_defs.h?rev=271474&r1=271473&r2=271474&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/common_interface_defs.h (original)
+++ compiler-rt/trunk/include/sanitizer/common_interface_defs.h Wed Jun  1 23:01:58 2016
@@ -137,7 +137,7 @@ extern "C" {
   // Prints stack traces for all live heap allocations ordered by total
   // allocation size until `top_percent` of total live heap is shown.
   // `top_percent` should be between 1 and 100.
-  // Experimental feature currently available only with asan on Linux.
+  // Experimental feature currently available only with asan on Linux/x86_64.
   void __sanitizer_print_memory_profile(size_t top_percent);
 #ifdef __cplusplus
 }  // extern "C"

Modified: compiler-rt/trunk/lib/asan/asan_memory_profile.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_memory_profile.cc?rev=271474&r1=271473&r2=271474&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_memory_profile.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_memory_profile.cc Wed Jun  1 23:01:58 2016
@@ -19,7 +19,7 @@
 #include "lsan/lsan_common.h"
 #include "asan/asan_allocator.h"
 
-#if SANITIZER_LINUX  // StopTheWorld is currently linux-only.
+#if CAN_SANITIZE_LEAKS
 
 namespace __asan {
 
@@ -97,4 +97,4 @@ void __sanitizer_print_memory_profile(up
 }
 }  // extern "C"
 
-#endif  // SANITIZER_LINUX
+#endif  // CAN_SANITIZE_LEAKS




More information about the llvm-commits mailing list