[LoongArch] Define the new-style reloc types
[llvm-project.git] / libcxxabi / src / fallback_malloc.h
blob816e691ed231396295d44323f3608dfec0be637c
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef _FALLBACK_MALLOC_H
10 #define _FALLBACK_MALLOC_H
12 #include "__cxxabi_config.h"
13 #include <stddef.h> // for size_t
15 namespace __cxxabiv1 {
17 // Allocate some memory from _somewhere_
18 _LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);
20 // Allocate and zero-initialize memory from _somewhere_
21 _LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size);
23 _LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);
24 _LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);
26 } // namespace __cxxabiv1
28 #endif