diff options
author | Stephen Hines <srhines@google.com> | 2014-02-13 21:21:09 +0000 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-02-13 21:21:09 +0000 |
commit | 93ecf3a91774e6361eb8a7de04da0b1e94ed8599 (patch) | |
tree | 505619bc87c5876f90558cab344fe9e841b18e5e | |
parent | 8d9be9a4cfa99592ac36e82d08f8e3e581d04602 (diff) | |
download | bcm5719-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.h | 4 |
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, |