2016-10-07 16:48:28 +08:00
|
|
|
//===------------------------- fallback_malloc.h --------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef _FALLBACK_MALLOC_H
|
|
|
|
#define _FALLBACK_MALLOC_H
|
|
|
|
|
2017-03-01 11:55:57 +08:00
|
|
|
#include "__cxxabi_config.h"
|
2016-10-07 16:48:28 +08:00
|
|
|
#include <cstddef> // for size_t
|
|
|
|
|
|
|
|
namespace __cxxabiv1 {
|
|
|
|
|
|
|
|
// Allocate some memory from _somewhere_
|
2017-03-04 10:04:45 +08:00
|
|
|
_LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);
|
2016-10-07 16:48:28 +08:00
|
|
|
|
|
|
|
// Allocate and zero-initialize memory from _somewhere_
|
2017-03-01 11:55:57 +08:00
|
|
|
_LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size);
|
2016-10-07 16:48:28 +08:00
|
|
|
|
2017-03-04 10:04:45 +08:00
|
|
|
_LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);
|
2017-03-01 11:55:57 +08:00
|
|
|
_LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);
|
2016-10-07 16:48:28 +08:00
|
|
|
|
|
|
|
} // namespace __cxxabiv1
|
|
|
|
|
|
|
|
#endif
|