From 165576e6bb7845056dda0d91e047073c65407cdd Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 27 Dec 2016 21:13:11 +0000 Subject: [compiler-rt] Move logic which replace memcpy interceptor with memmove from asan to sanitizer_common. Reviewers: eugenis Subscribers: kubabrecka, dberris, llvm-commits Differential Revision: https://reviews.llvm.org/D28074 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290626 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/asan_mac.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/asan/asan_mac.cc') diff --git a/lib/asan/asan_mac.cc b/lib/asan/asan_mac.cc index 525864f72..baf533ac9 100644 --- a/lib/asan/asan_mac.cc +++ b/lib/asan/asan_mac.cc @@ -49,15 +49,6 @@ namespace __asan { void InitializePlatformInterceptors() {} void InitializePlatformExceptionHandlers() {} -bool PlatformHasDifferentMemcpyAndMemmove() { - // On OS X 10.7 memcpy() and memmove() are both resolved - // into memmove$VARIANT$sse42. - // See also https://github.com/google/sanitizers/issues/34. - // TODO(glider): need to check dynamically that memcpy() and memmove() are - // actually the same function. - return GetMacosVersion() == MACOS_VERSION_SNOW_LEOPARD; -} - // No-op. Mac does not support static linkage anyway. void *AsanDoesNotSupportStaticLinkage() { return 0; -- cgit v1.2.3