]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/CodeGen/BuiltinGCs.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / CodeGen / BuiltinGCs.h
1 //===-- BuiltinGCs.h - Garbage collector linkage hacks --------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains hack functions to force linking in the builtin GC
11 // components.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_CODEGEN_GCS_H
16 #define LLVM_CODEGEN_GCS_H
17
18 namespace llvm {
19
20 /// FIXME: Collector instances are not useful on their own. These no longer
21 ///        serve any purpose except to link in the plugins.
22
23 /// Ensure the definition of the builtin GCs gets linked in
24 void linkAllBuiltinGCs();
25
26 /// Creates an ocaml-compatible metadata printer.
27 void linkOcamlGCPrinter();
28
29 /// Creates an erlang-compatible metadata printer.
30 void linkErlangGCPrinter();
31 }
32
33 #endif