//===- MemAlloc.cpp - Memory allocation functions -------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/Support/MemAlloc.h" #include <new> // These are out of line to have __cpp_aligned_new not affect ABI. LLVM_ATTRIBUTE_RETURNS_NONNULL LLVM_ATTRIBUTE_RETURNS_NOALIAS void * llvm::allocate_buffer(size_t Size, size_t Alignment) { … } void llvm::deallocate_buffer(void *Ptr, size_t Size, size_t Alignment) { … }