summaryrefslogtreecommitdiff
path: root/lib/asan/asan_internal.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-08-27 09:30:58 +0000
committerAlexey Samsonov <samsonov@google.com>2012-08-27 09:30:58 +0000
commit70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc (patch)
tree796420f9799d74d43c3104291d21b943a9f97102 /lib/asan/asan_internal.h
parentae46cd0e92794f3b18f49f94c081e414fb7e1367 (diff)
downloadcompiler-rt-70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc.tar.gz
compiler-rt-70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc.tar.bz2
compiler-rt-70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc.tar.xz
[Sanitizer] move low-level (mmap-based) allocator to sanitizer_common
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r--lib/asan/asan_internal.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h
index d72a5569..a283c2b8 100644
--- a/lib/asan/asan_internal.h
+++ b/lib/asan/asan_internal.h
@@ -141,8 +141,6 @@ extern int asan_inited;
extern bool asan_init_is_running;
extern void (*death_callback)(void);
-enum LinkerInitialized { LINKER_INITIALIZED = 0 };
-
#define ASAN_ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
#if !defined(_WIN32) || defined(__clang__)
@@ -177,19 +175,6 @@ const int kAsanInternalHeapMagic = 0xfe;
static const uptr kCurrentStackFrameMagic = 0x41B58AB3;
static const uptr kRetiredStackFrameMagic = 0x45E0360E;
-// -------------------------- LowLevelAllocator ----- {{{1
-// A simple low-level memory allocator for internal use.
-class LowLevelAllocator {
- public:
- explicit LowLevelAllocator(LinkerInitialized) {}
- // 'size' must be a power of two.
- // Requires an external lock.
- void *Allocate(uptr size);
- private:
- char *allocated_end_;
- char *allocated_current_;
-};
-
} // namespace __asan
#endif // ASAN_INTERNAL_H