From: David Blaikie Date: Thu, 23 Nov 2017 00:08:40 +0000 (+0000) Subject: Instrumentation.h: Remove dead/untested code for DFSan JIT support X-Git-Tag: llvmorg-6.0.0-rc1~2790 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b55e997478229fd7c45f1a7078380eacff3bb6b;p=platform%2Fupstream%2Fllvm.git Instrumentation.h: Remove dead/untested code for DFSan JIT support llvm-svn: 318887 --- diff --git a/llvm/include/llvm/Transforms/Instrumentation.h b/llvm/include/llvm/Transforms/Instrumentation.h index 62333ec..0d76328 100644 --- a/llvm/include/llvm/Transforms/Instrumentation.h +++ b/llvm/include/llvm/Transforms/Instrumentation.h @@ -22,20 +22,6 @@ #include #include -#if defined(__GNUC__) && defined(__linux__) && !defined(ANDROID) -inline void *getDFSanArgTLSPtrForJIT() { - extern __thread __attribute__((tls_model("initial-exec"))) - void *__dfsan_arg_tls; - return (void *)&__dfsan_arg_tls; -} - -inline void *getDFSanRetValTLSPtrForJIT() { - extern __thread __attribute__((tls_model("initial-exec"))) - void *__dfsan_retval_tls; - return (void *)&__dfsan_retval_tls; -} -#endif - namespace llvm { class FunctionPass; @@ -194,14 +180,6 @@ struct SanitizerCoverageOptions { ModulePass *createSanitizerCoverageModulePass( const SanitizerCoverageOptions &Options = SanitizerCoverageOptions()); -#if defined(__GNUC__) && defined(__linux__) && !defined(ANDROID) -inline ModulePass *createDataFlowSanitizerPassForJIT( - const std::vector &ABIListFiles = std::vector()) { - return createDataFlowSanitizerPass(ABIListFiles, getDFSanArgTLSPtrForJIT, - getDFSanRetValTLSPtrForJIT); -} -#endif - /// \brief Calculate what to divide by to scale counts. /// /// Given the maximum count, calculate a divisor that will scale all the