blob: 10784424845b1b3b3dee9aee8dd1d73ba4abec55 [file] [log] [blame]
Igor Kudrin11741ce2016-10-07 08:48:28 +00001//===------------------------- fallback_malloc.h --------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef _FALLBACK_MALLOC_H
11#define _FALLBACK_MALLOC_H
12
13#include <cstddef> // for size_t
14
15namespace __cxxabiv1 {
16
17#pragma GCC visibility push(hidden)
18
19// Allocate some memory from _somewhere_
20void * __malloc_with_fallback(size_t size);
21
22// Allocate and zero-initialize memory from _somewhere_
23void * __calloc_with_fallback(size_t count, size_t size);
24
25void __free_with_fallback(void *ptr);
26
27#pragma GCC visibility pop
28
29} // namespace __cxxabiv1
30
31#endif