BuiltinGCs.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //===-- BuiltinGCs.h - Garbage collector linkage hacks --------------------===//
  2. //
  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
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file contains hack functions to force linking in the builtin GC
  10. // components.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_IR_BUILTINGCS_H
  14. #define LLVM_IR_BUILTINGCS_H
  15. namespace llvm {
  16. /// FIXME: Collector instances are not useful on their own. These no longer
  17. /// serve any purpose except to link in the plugins.
  18. /// Ensure the definition of the builtin GCs gets linked in
  19. void linkAllBuiltinGCs();
  20. /// Creates an ocaml-compatible metadata printer.
  21. void linkOcamlGCPrinter();
  22. /// Creates an erlang-compatible metadata printer.
  23. void linkErlangGCPrinter();
  24. } // namespace llvm
  25. #endif // LLVM_IR_BUILTINGCS_H