1 //===-- BuiltinGCs.h - Garbage collector linkage hacks --------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains hack functions to force linking in the builtin GC
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CODEGEN_GCS_H
15 #define LLVM_CODEGEN_GCS_H
19 /// FIXME: Collector instances are not useful on their own. These no longer
20 /// serve any purpose except to link in the plugins.
22 /// Ensure the definition of the builtin GCs gets linked in
23 void linkAllBuiltinGCs();
25 /// Creates an ocaml-compatible metadata printer.
26 void linkOcamlGCPrinter();
28 /// Creates an erlang-compatible metadata printer.
29 void linkErlangGCPrinter();