[compiler-rt] r226276 - [Sanitizers] Intercept clock_gettime() on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Fri Jan 16 06:54:39 PST 2015
Author: vkutuzov
Date: Fri Jan 16 08:54:39 2015
New Revision: 226276
URL: http://llvm.org/viewvc/llvm-project?rev=226276&view=rev
Log:
[Sanitizers] Intercept clock_gettime() on FreeBSD
Committed unreviewed with permission.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h?rev=226276&r1=226275&r2=226276&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform_interceptors.h Fri Jan 16 08:54:39 2015
@@ -99,7 +99,7 @@
#define SANITIZER_INTERCEPT_FGETPWENT SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT_GETPWENT_R SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT_SETPWENT SI_MAC || SI_LINUX_NOT_ANDROID
-#define SANITIZER_INTERCEPT_CLOCK_GETTIME SI_LINUX
+#define SANITIZER_INTERCEPT_CLOCK_GETTIME SI_FREEBSD || SI_LINUX
#define SANITIZER_INTERCEPT_GETITIMER SI_NOT_WINDOWS
#define SANITIZER_INTERCEPT_TIME SI_NOT_WINDOWS
#define SANITIZER_INTERCEPT_GLOB SI_LINUX_NOT_ANDROID
More information about the llvm-commits
mailing list