1 //===-- GCs.h - Garbage collector linkage hacks ---------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains hack functions to force linking in the GC components.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CODEGEN_GCS_H
15 #define LLVM_CODEGEN_GCS_H
19 class GCMetadataPrinter;
21 /// FIXME: Collector instances are not useful on their own. These no longer
22 /// serve any purpose except to link in the plugins.
24 /// Creates a CoreCLR-compatible garbage collector.
27 /// Creates an ocaml-compatible garbage collector.
30 /// Creates an ocaml-compatible metadata printer.
31 void linkOcamlGCPrinter();
33 /// Creates an erlang-compatible garbage collector.
36 /// Creates an erlang-compatible metadata printer.
37 void linkErlangGCPrinter();
39 /// Creates a shadow stack garbage collector. This collector requires no code
40 /// generator support.
41 void linkShadowStackGC();
43 void linkStatepointExampleGC();