summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-11-23 00:08:40 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-11-23 00:08:40 +0000
commit9b55e997478229fd7c45f1a7078380eacff3bb6b (patch)
tree987dc4467820ce76d9fb8930df12d5fbaa6ff528 /llvm
parentfd3ffabfc36736956bf314a3320cebf3bb43fe84 (diff)
downloadbcm5719-llvm-9b55e997478229fd7c45f1a7078380eacff3bb6b.tar.gz
bcm5719-llvm-9b55e997478229fd7c45f1a7078380eacff3bb6b.zip
Instrumentation.h: Remove dead/untested code for DFSan JIT support
llvm-svn: 318887
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Transforms/Instrumentation.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/include/llvm/Transforms/Instrumentation.h b/llvm/include/llvm/Transforms/Instrumentation.h
index 62333ec6a87..0d76328a2f8 100644
--- a/llvm/include/llvm/Transforms/Instrumentation.h
+++ b/llvm/include/llvm/Transforms/Instrumentation.h
@@ -22,20 +22,6 @@
#include <string>
#include <vector>
-#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<std::string> &ABIListFiles = std::vector<std::string>()) {
- 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
OpenPOWER on IntegriCloud