[llvm] r187938 - Really unbreak Mac build.
    Peter Collingbourne 
    peter at pcc.me.uk
       
    Wed Aug  7 16:41:13 PDT 2013
    
    
  
Author: pcc
Date: Wed Aug  7 18:41:13 2013
New Revision: 187938
URL: http://llvm.org/viewvc/llvm-project?rev=187938&view=rev
Log:
Really unbreak Mac build.
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=187938&r1=187937&r2=187938&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Instrumentation.h (original)
+++ llvm/trunk/include/llvm/Transforms/Instrumentation.h Wed Aug  7 18:41:13 2013
@@ -92,7 +92,7 @@ FunctionPass *createThreadSanitizerPass(
 ModulePass *createDataFlowSanitizerPass(void *(*getArgTLS)() = 0,
                                         void *(*getRetValTLS)() = 0);
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && defined(__linux__)
 inline ModulePass *createDataFlowSanitizerPassForJIT() {
   return createDataFlowSanitizerPass(getDFSanArgTLSPtrForJIT,
                                      getDFSanRetValTLSPtrForJIT);
    
    
More information about the llvm-commits
mailing list