BuiltinGCs.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- BuiltinGCs.h - Garbage collector linkage hacks --------------------===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // This file contains hack functions to force linking in the builtin GC
  15. // components.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_IR_BUILTINGCS_H
  19. #define LLVM_IR_BUILTINGCS_H
  20. namespace llvm {
  21. /// FIXME: Collector instances are not useful on their own. These no longer
  22. /// serve any purpose except to link in the plugins.
  23. /// Ensure the definition of the builtin GCs gets linked in
  24. void linkAllBuiltinGCs();
  25. /// Creates an ocaml-compatible metadata printer.
  26. void linkOcamlGCPrinter();
  27. /// Creates an erlang-compatible metadata printer.
  28. void linkErlangGCPrinter();
  29. } // namespace llvm
  30. #endif // LLVM_IR_BUILTINGCS_H
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif