summaryrefslogtreecommitdiff
path: root/lib/asan/asan_malloc_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asan/asan_malloc_local.h')
-rw-r--r--lib/asan/asan_malloc_local.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/lib/asan/asan_malloc_local.h b/lib/asan/asan_malloc_local.h
deleted file mode 100644
index 0e8de207d98d3..0000000000000
--- a/lib/asan/asan_malloc_local.h
+++ /dev/null
@@ -1,44 +0,0 @@
-//===-- asan_malloc_local.h -------------------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This file is a part of AddressSanitizer, an address sanity checker.
-//
-// Provide interfaces to check for and handle local pool memory allocation.
-//===----------------------------------------------------------------------===//
-
-#ifndef ASAN_MALLOC_LOCAL_H
-#define ASAN_MALLOC_LOCAL_H
-
-#include "sanitizer_common/sanitizer_platform.h"
-#include "asan_internal.h"
-
-// On RTEMS, we use the local pool to handle memory allocation when the ASan
-// run-time is not up.
-static INLINE bool EarlyMalloc() {
- return SANITIZER_RTEMS && (!__asan::asan_inited ||
- __asan::asan_init_is_running);
-}
-
-void* MemalignFromLocalPool(uptr alignment, uptr size);
-
-#if SANITIZER_RTEMS
-
-bool IsFromLocalPool(const void *ptr);
-
-#define ALLOCATE_FROM_LOCAL_POOL UNLIKELY(EarlyMalloc())
-#define IS_FROM_LOCAL_POOL(ptr) UNLIKELY(IsFromLocalPool(ptr))
-
-#else // SANITIZER_RTEMS
-
-#define ALLOCATE_FROM_LOCAL_POOL 0
-#define IS_FROM_LOCAL_POOL(ptr) 0
-
-#endif // SANITIZER_RTEMS
-
-#endif // ASAN_MALLOC_LOCAL_H