[compiler-rt] r361942 - [HWASAN] Remove unused code
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 03:13:41 PDT 2019
Author: evgeny777
Date: Wed May 29 03:13:41 2019
New Revision: 361942
URL: http://llvm.org/viewvc/llvm-project?rev=361942&view=rev
Log:
[HWASAN] Remove unused code
Differential revision: https://reviews.llvm.org/D62489
Modified:
compiler-rt/trunk/lib/hwasan/hwasan_interceptors.cpp
compiler-rt/trunk/lib/hwasan/hwasan_thread.h
Modified: compiler-rt/trunk/lib/hwasan/hwasan_interceptors.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan_interceptors.cpp?rev=361942&r1=361941&r2=361942&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/hwasan_interceptors.cpp (original)
+++ compiler-rt/trunk/lib/hwasan/hwasan_interceptors.cpp Wed May 29 03:13:41 2019
@@ -44,24 +44,6 @@ using __sanitizer::atomic_load;
using __sanitizer::atomic_store;
using __sanitizer::atomic_uintptr_t;
-bool IsInInterceptorScope() {
- Thread *t = GetCurrentThread();
- return t && t->InInterceptorScope();
-}
-
-struct InterceptorScope {
- InterceptorScope() {
- Thread *t = GetCurrentThread();
- if (t)
- t->EnterInterceptorScope();
- }
- ~InterceptorScope() {
- Thread *t = GetCurrentThread();
- if (t)
- t->LeaveInterceptorScope();
- }
-};
-
static uptr allocated_for_dlsym;
static const uptr kDlsymAllocPoolSize = 1024;
static uptr alloc_memory_for_dlsym[kDlsymAllocPoolSize];
@@ -254,11 +236,6 @@ INTERCEPTOR(int, fork, void) {
return pid;
}
-
-struct HwasanInterceptorContext {
- bool in_interceptor_scope;
-};
-
namespace __hwasan {
int OnExit() {
Modified: compiler-rt/trunk/lib/hwasan/hwasan_thread.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/hwasan_thread.h?rev=361942&r1=361941&r2=361942&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/hwasan_thread.h (original)
+++ compiler-rt/trunk/lib/hwasan/hwasan_thread.h Wed May 29 03:13:41 2019
@@ -46,10 +46,6 @@ class Thread {
void EnterSymbolizer() { in_symbolizer_++; }
void LeaveSymbolizer() { in_symbolizer_--; }
- bool InInterceptorScope() { return in_interceptor_scope_; }
- void EnterInterceptorScope() { in_interceptor_scope_++; }
- void LeaveInterceptorScope() { in_interceptor_scope_--; }
-
AllocatorCache *allocator_cache() { return &allocator_cache_; }
HeapAllocationsRingBuffer *heap_allocations() { return heap_allocations_; }
StackAllocationsRingBuffer *stack_allocations() { return stack_allocations_; }
@@ -82,7 +78,6 @@ class Thread {
unsigned in_signal_handler_;
unsigned in_symbolizer_;
- unsigned in_interceptor_scope_;
u32 random_state_;
u32 random_buffer_;
More information about the llvm-commits
mailing list