diff options
author | Kostya Serebryany <kcc@google.com> | 2016-06-02 04:01:58 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-06-02 04:01:58 +0000 |
commit | 77170c97c89da5daad5983220c35adb2fb56a981 (patch) | |
tree | 9e3c75754f9a3661d70de855091ac941ff7c8e10 | |
parent | cb9881b4dd932b0d8e838f6e902ad6585ef57026 (diff) |
[asan] fix arm build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@271474 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 2 | ||||
-rw-r--r-- | lib/asan/asan_memory_profile.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index 1bf3c1c96..49360f2af 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -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" diff --git a/lib/asan/asan_memory_profile.cc b/lib/asan/asan_memory_profile.cc index e87e6c8e7..ba0051634 100644 --- a/lib/asan/asan_memory_profile.cc +++ b/lib/asan/asan_memory_profile.cc @@ -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(uptr top_percent) { } } // extern "C" -#endif // SANITIZER_LINUX +#endif // CAN_SANITIZE_LEAKS |