forked from OSchip/llvm-project
[ASan] Kill the remainders of platform defines in favor of SANITIZER_ defines
llvm-svn: 178629
This commit is contained in:
parent
927fa01e8c
commit
21cb74318c
|
@ -737,7 +737,7 @@ void InitializeAsanInterceptors() {
|
|||
if (flags()->verbosity > 0) {
|
||||
Report("AddressSanitizer: libc interceptors initialized\n");
|
||||
}
|
||||
#endif // __APPLE__
|
||||
#endif // SANITIZER_MAC
|
||||
}
|
||||
|
||||
} // namespace __asan
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -134,4 +134,4 @@ void ReadContextStack(void *context, uptr *stack, uptr *ssize) {
|
|||
|
||||
} // namespace __asan
|
||||
|
||||
#endif // __linux__
|
||||
#endif // SANITIZER_LINUX
|
||||
|
|
|
@ -435,4 +435,4 @@ INTERCEPTOR(void, dispatch_source_set_event_handler,
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif // __APPLE__
|
||||
#endif // SANITIZER_MAC
|
||||
|
|
|
@ -147,4 +147,4 @@ INTERCEPTOR(void, malloc_stats, void) {
|
|||
__asan_print_accumulated_stats();
|
||||
}
|
||||
|
||||
#endif // __linux__
|
||||
#endif // SANITIZER_LINUX
|
||||
|
|
|
@ -346,4 +346,4 @@ void ReplaceSystemMalloc() {
|
|||
}
|
||||
} // namespace __asan
|
||||
|
||||
#endif // __APPLE__
|
||||
#endif // SANITIZER_MAC
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -118,4 +118,4 @@ void AsanTSDSet(void *tsd) {
|
|||
|
||||
} // namespace __asan
|
||||
|
||||
#endif // __linux__ || __APPLE_
|
||||
#endif // SANITIZER_LINUX || SANITIZER_MAC
|
||||
|
|
Loading…
Reference in New Issue