[ASan] Kill the remainders of platform defines in favor of SANITIZER_ defines

llvm-svn: 178629
This commit is contained in:
Alexey Samsonov 2013-04-03 07:29:53 +00:00
parent 927fa01e8c
commit 21cb74318c
8 changed files with 9 additions and 9 deletions

View File

@ -737,7 +737,7 @@ void InitializeAsanInterceptors() {
if (flags()->verbosity > 0) {
Report("AddressSanitizer: libc interceptors initialized\n");
}
#endif // __APPLE__
#endif // SANITIZER_MAC
}
} // namespace __asan

View File

@ -107,7 +107,7 @@ bool PlatformHasDifferentMemcpyAndMemmove();
(PlatformHasDifferentMemcpyAndMemmove())
#else
# define PLATFORM_HAS_DIFFERENT_MEMCPY_AND_MEMMOVE true
#endif // __APPLE__
#endif // SANITIZER_MAC
// Add convenient macro for interface functions that may be represented as
// weak hooks.

View File

@ -134,4 +134,4 @@ void ReadContextStack(void *context, uptr *stack, uptr *ssize) {
} // namespace __asan
#endif // __linux__
#endif // SANITIZER_LINUX

View File

@ -435,4 +435,4 @@ INTERCEPTOR(void, dispatch_source_set_event_handler,
}
#endif
#endif // __APPLE__
#endif // SANITIZER_MAC

View File

@ -147,4 +147,4 @@ INTERCEPTOR(void, malloc_stats, void) {
__asan_print_accumulated_stats();
}
#endif // __linux__
#endif // SANITIZER_LINUX

View File

@ -346,4 +346,4 @@ void ReplaceSystemMalloc() {
}
} // namespace __asan
#endif // __APPLE__
#endif // SANITIZER_MAC

View File

@ -59,7 +59,7 @@ INTERCEPTOR_ATTRIBUTE
void *operator new[](size_t size, std::nothrow_t const&)
{ OPERATOR_NEW_BODY(FROM_NEW_BR); }
#else // __APPLE__
#else // SANITIZER_MAC
INTERCEPTOR(void *, _Znwm, size_t size) {
OPERATOR_NEW_BODY(FROM_NEW);
}
@ -90,7 +90,7 @@ INTERCEPTOR_ATTRIBUTE
void operator delete[](void *ptr, std::nothrow_t const&)
{ OPERATOR_DELETE_BODY(FROM_NEW_BR); }
#else // __APPLE__
#else // SANITIZER_MAC
INTERCEPTOR(void, _ZdlPv, void *ptr) {
OPERATOR_DELETE_BODY(FROM_NEW);
}

View File

@ -118,4 +118,4 @@ void AsanTSDSet(void *tsd) {
} // namespace __asan
#endif // __linux__ || __APPLE_
#endif // SANITIZER_LINUX || SANITIZER_MAC