Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.2 KiB

  1. //===-- GCs.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 GC components.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_CODEGEN_GCS_H
  14. #define LLVM_CODEGEN_GCS_H
  15. namespace llvm {
  16. class GCStrategy;
  17. class GCMetadataPrinter;
  18. /// FIXME: Collector instances are not useful on their own. These no longer
  19. /// serve any purpose except to link in the plugins.
  20. /// Creates an ocaml-compatible garbage collector.
  21. void linkOcamlGC();
  22. /// Creates an ocaml-compatible metadata printer.
  23. void linkOcamlGCPrinter();
  24. /// Creates an erlang-compatible garbage collector.
  25. void linkErlangGC();
  26. /// Creates an erlang-compatible metadata printer.
  27. void linkErlangGCPrinter();
  28. /// Creates a shadow stack garbage collector. This collector requires no code
  29. /// generator support.
  30. void linkShadowStackGC();
  31. }
  32. #endif