summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-01-15 15:13:43 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-01-15 15:13:43 +0000
commitf294d5b8291e7b035cd33f11e55f553d1b0c97a0 (patch)
treeda710a46139c9e10ceeedd89b9171e27df6c7efe /compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
parent1a1a7d0f305e13d04c06ab653c82ff79d912cf35 (diff)
downloadbcm5719-llvm-f294d5b8291e7b035cd33f11e55f553d1b0c97a0.tar.gz
bcm5719-llvm-f294d5b8291e7b035cd33f11e55f553d1b0c97a0.zip
[sanitizer] Flag parser rewrite.
The new parser is a lot stricter about syntax, reports unrecognized flags, and will make it easier to implemented some of the planned features. llvm-svn: 226169
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
index 4409fd65bf3..9b9cfd0b593 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_allocator_internal.h
@@ -49,6 +49,15 @@ void *InternalAlloc(uptr size, InternalAllocatorCache *cache = 0);
void InternalFree(void *p, InternalAllocatorCache *cache = 0);
InternalAllocator *internal_allocator();
+enum InternalAllocEnum {
+ INTERNAL_ALLOC
+};
+
} // namespace __sanitizer
+inline void *operator new(__sanitizer::operator_new_size_type size,
+ InternalAllocEnum) {
+ return InternalAlloc(size);
+}
+
#endif // SANITIZER_ALLOCATOR_INTERNAL_H
OpenPOWER on IntegriCloud