1*349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 2*349cc55cSDimitry Andric // 3*349cc55cSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*349cc55cSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*349cc55cSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*349cc55cSDimitry Andric // 7*349cc55cSDimitry Andric //===----------------------------------------------------------------------===// 8*349cc55cSDimitry Andric 9*349cc55cSDimitry Andric #include "__config" 10*349cc55cSDimitry Andric #include <memory> 11*349cc55cSDimitry Andric 12*349cc55cSDimitry Andric // Support for garbage collection was removed in C++23 by https://wg21.link/P2186R2. Libc++ implements 13*349cc55cSDimitry Andric // that removal as an extension in all Standard versions. However, we still define the functions that 14*349cc55cSDimitry Andric // were once part of the library's ABI for backwards compatibility. 15*349cc55cSDimitry Andric 16*349cc55cSDimitry Andric _LIBCPP_BEGIN_NAMESPACE_STD 17*349cc55cSDimitry Andric 18*349cc55cSDimitry Andric _LIBCPP_FUNC_VIS void declare_reachable(void*) {} 19*349cc55cSDimitry Andric _LIBCPP_FUNC_VIS void declare_no_pointers(char*, size_t) {} 20*349cc55cSDimitry Andric _LIBCPP_FUNC_VIS void undeclare_no_pointers(char*, size_t) {} 21*349cc55cSDimitry Andric _LIBCPP_FUNC_VIS void* __undeclare_reachable(void* p) { return p; } 22*349cc55cSDimitry Andric 23*349cc55cSDimitry Andric _LIBCPP_END_NAMESPACE_STD 24