diff options
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_mman.cpp')
-rw-r--r-- | contrib/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_mman.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_mman.cpp b/contrib/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_mman.cpp index 86a3dcd332b2..38b21a0cde98 100644 --- a/contrib/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_mman.cpp +++ b/contrib/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_mman.cpp @@ -20,18 +20,6 @@ #include "tsan_report.h" #include "tsan_flags.h" -// May be overriden by front-end. -SANITIZER_WEAK_DEFAULT_IMPL -void __sanitizer_malloc_hook(void *ptr, uptr size) { - (void)ptr; - (void)size; -} - -SANITIZER_WEAK_DEFAULT_IMPL -void __sanitizer_free_hook(void *ptr) { - (void)ptr; -} - namespace __tsan { struct MapUnmapCallback { @@ -356,7 +344,6 @@ void invoke_malloc_hook(void *ptr, uptr size) { ThreadState *thr = cur_thread(); if (ctx == 0 || !ctx->initialized || thr->ignore_interceptors) return; - __sanitizer_malloc_hook(ptr, size); RunMallocHooks(ptr, size); } @@ -364,7 +351,6 @@ void invoke_free_hook(void *ptr) { ThreadState *thr = cur_thread(); if (ctx == 0 || !ctx->initialized || thr->ignore_interceptors) return; - __sanitizer_free_hook(ptr); RunFreeHooks(ptr); } |