[llvm-commits] [compiler-rt] r153378 - /compiler-rt/trunk/lib/asan/asan_interceptors.cc

Alexey Samsonov samsonov at google.com
Sat Mar 24 02:47:57 PDT 2012


Author: samsonov
Date: Sat Mar 24 04:47:56 2012
New Revision: 153378

URL: http://llvm.org/viewvc/llvm-project?rev=153378&view=rev
Log:
[ASan] simplify ASAN_INTERCEPT_* definitions

Modified:
    compiler-rt/trunk/lib/asan/asan_interceptors.cc

Modified: compiler-rt/trunk/lib/asan/asan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_interceptors.cc?rev=153378&r1=153377&r2=153378&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_interceptors.cc Sat Mar 24 04:47:56 2012
@@ -26,17 +26,8 @@
 
 // Use macro to describe if specific function should be
 // intercepted on a given platform.
-#if !defined(_WIN32)
-# define ASAN_INTERCEPT_STRTOLL 1
-#else
-# define ASAN_INTERCEPT_STRTOLL 0
-#endif
-
-#if !defined(__APPLE__)
-# define ASAN_INTERCEPT_STRNLEN 1
-#else
-# define ASAN_INTERCEPT_STRNLEN 0
-#endif
+#define ASAN_INTERCEPT_STRTOLL !defined(_WIN32)
+#define ASAN_INTERCEPT_STRNLEN !defined(__APPLE__)
 
 // Use extern declarations of intercepted functions on Mac and Windows
 // to avoid including system headers.





More information about the llvm-commits mailing list