[llvm] r201362 - Don't build DFSan functionality for Android.

Stephen Hines srhines at google.com
Thu Feb 13 13:21:09 PST 2014


Author: srhines
Date: Thu Feb 13 15:21:09 2014
New Revision: 201362

URL: http://llvm.org/viewvc/llvm-project?rev=201362&view=rev
Log:
Don't build DFSan functionality for Android.

Modified:
    llvm/trunk/include/llvm/Transforms/Instrumentation.h

Modified: llvm/trunk/include/llvm/Transforms/Instrumentation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Instrumentation.h?rev=201362&r1=201361&r2=201362&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Instrumentation.h (original)
+++ llvm/trunk/include/llvm/Transforms/Instrumentation.h Thu Feb 13 15:21:09 2014
@@ -16,7 +16,7 @@
 
 #include "llvm/ADT/StringRef.h"
 
-#if defined(__GNUC__) && defined(__linux__)
+#if defined(__GNUC__) && defined(__linux__) && !defined(ANDROID)
 inline void *getDFSanArgTLSPtrForJIT() {
   extern __thread __attribute__((tls_model("initial-exec")))
     void *__dfsan_arg_tls;
@@ -82,7 +82,7 @@ ModulePass *createDataFlowSanitizerPass(
                                         void *(*getArgTLS)() = 0,
                                         void *(*getRetValTLS)() = 0);
 
-#if defined(__GNUC__) && defined(__linux__)
+#if defined(__GNUC__) && defined(__linux__) && !defined(ANDROID)
 inline ModulePass *createDataFlowSanitizerPassForJIT(StringRef ABIListFile =
                                                          StringRef()) {
   return createDataFlowSanitizerPass(ABIListFile, getDFSanArgTLSPtrForJIT,





More information about the llvm-commits mailing list