[asan] fix arm build

llvm-svn: 271474
This commit is contained in:
Kostya Serebryany 2016-06-02 04:01:58 +00:00
parent d697ee41bc
commit 3e7bf586f8
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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