summaryrefslogtreecommitdiffstats
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 21:21:09 +0000
commit93ecf3a91774e6361eb8a7de04da0b1e94ed8599 (patch)
tree505619bc87c5876f90558cab344fe9e841b18e5e
parent8d9be9a4cfa99592ac36e82d08f8e3e581d04602 (diff)
downloadbcm5719-llvm-93ecf3a91774e6361eb8a7de04da0b1e94ed8599.tar.gz
bcm5719-llvm-93ecf3a91774e6361eb8a7de04da0b1e94ed8599.zip
Don't build DFSan functionality for Android.
llvm-svn: 201362
-rw-r--r--llvm/include/llvm/Transforms/Instrumentation.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Transforms/Instrumentation.h b/llvm/include/llvm/Transforms/Instrumentation.h
index a3b365500af..47bdb4246fa 100644
--- a/llvm/include/llvm/Transforms/Instrumentation.h
+++ b/llvm/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;
@@ -82,7 +82,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,
OpenPOWER on IntegriCloud