summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-02-13 21:21:09 +0000
committerStephen Hines <srhines@google.com>2014-02-13 13:31:14 -0800
commit4d459ec25a2763acb7b29f0b999fcc637e4102da (patch)
tree956904d1ce0e894b5546826299101241c4618976 /include
parent373aa5c665fe6df6b9c5586d397dc3617f25aab5 (diff)
downloadexternal_llvm-4d459ec25a2763acb7b29f0b999fcc637e4102da.zip
external_llvm-4d459ec25a2763acb7b29f0b999fcc637e4102da.tar.gz
external_llvm-4d459ec25a2763acb7b29f0b999fcc637e4102da.tar.bz2
Don't build DFSan functionality for Android.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Instrumentation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index 8a1b34e..2de15aa 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -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;
@@ -84,7 +84,7 @@ ModulePass *createDataFlowSanitizerPass(StringRef ABIListFile = StringRef(),
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,