Bug 1036215 - Use MOZ_EXPORT in MemoryChecking.h; r=njn

This commit is contained in:
Ehsan Akhgari 2014-07-08 22:58:26 -04:00
parent 41368efcce
commit fa23995e95

View File

@ -34,14 +34,14 @@
#if defined(MOZ_ASAN)
#include <stddef.h>
#include "mozilla/Types.h"
extern "C" {
/* These definitions are usually provided through the
* sanitizer/asan_interface.h header installed by ASan.
*/
void __asan_poison_memory_region(void const volatile *addr, size_t size)
__attribute__((visibility("default")));
void __asan_unpoison_memory_region(void const volatile *addr, size_t size)
__attribute__((visibility("default")));
void MOZ_EXPORT __asan_poison_memory_region(void const volatile *addr, size_t size);
void MOZ_EXPORT __asan_unpoison_memory_region(void const volatile *addr, size_t size);
#define MOZ_MAKE_MEM_NOACCESS(addr, size) \
__asan_poison_memory_region((addr), (size))