summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-08-07 23:41:13 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-08-07 23:41:13 +0000
commitc348ad00e5a0b04df6a7cba83b6e77ab81f28de1 (patch)
tree8ca485ebf54634d593534dacc00da8453fe6f8a8 /include
parent32647ca140e0a654e6e9fdc98660493bee07f2ac (diff)
downloadllvm-c348ad00e5a0b04df6a7cba83b6e77ab81f28de1.tar.gz
llvm-c348ad00e5a0b04df6a7cba83b6e77ab81f28de1.tar.bz2
llvm-c348ad00e5a0b04df6a7cba83b6e77ab81f28de1.tar.xz
Really unbreak Mac build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187938 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Instrumentation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index 9befe588e3..ecc470bb1f 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -92,7 +92,7 @@ FunctionPass *createThreadSanitizerPass(StringRef BlacklistFile = StringRef());
ModulePass *createDataFlowSanitizerPass(void *(*getArgTLS)() = 0,
void *(*getRetValTLS)() = 0);
-#ifdef __GNUC__
+#if defined(__GNUC__) && defined(__linux__)
inline ModulePass *createDataFlowSanitizerPassForJIT() {
return createDataFlowSanitizerPass(getDFSanArgTLSPtrForJIT,
getDFSanRetValTLSPtrForJIT);