summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-03-24 10:12:58 +0000
committerAlexey Samsonov <samsonov@google.com>2012-03-24 10:12:58 +0000
commitf71cb8d3073986a9eff65ba42e1019a1e554829d (patch)
tree90ade80eb2f729cb9c0bda48c6bdb5a2482ac355
parent01da1055d30066f95a14b1f41213d5556e1f4c4f (diff)
downloadbcm5719-llvm-f71cb8d3073986a9eff65ba42e1019a1e554829d.tar.gz
bcm5719-llvm-f71cb8d3073986a9eff65ba42e1019a1e554829d.zip
[ASan] revert r153378
llvm-svn: 153379
-rw-r--r--compiler-rt/lib/asan/asan_interceptors.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_interceptors.cc b/compiler-rt/lib/asan/asan_interceptors.cc
index 6bef78b6d35..7e720d30223 100644
--- a/compiler-rt/lib/asan/asan_interceptors.cc
+++ b/compiler-rt/lib/asan/asan_interceptors.cc
@@ -26,8 +26,17 @@
// Use macro to describe if specific function should be
// intercepted on a given platform.
-#define ASAN_INTERCEPT_STRTOLL !defined(_WIN32)
-#define ASAN_INTERCEPT_STRNLEN !defined(__APPLE__)
+#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
// Use extern declarations of intercepted functions on Mac and Windows
// to avoid including system headers.
OpenPOWER on IntegriCloud