diff options
author | Devtools Arcadia <arcadia-devtools@yandex-team.ru> | 2022-02-07 18:08:42 +0300 |
---|---|---|
committer | Devtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net> | 2022-02-07 18:08:42 +0300 |
commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/libs/llvm12/include/llvm/CodeGen/BuiltinGCs.h | |
download | ydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/CodeGen/BuiltinGCs.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/CodeGen/BuiltinGCs.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/contrib/libs/llvm12/include/llvm/CodeGen/BuiltinGCs.h b/contrib/libs/llvm12/include/llvm/CodeGen/BuiltinGCs.h new file mode 100644 index 0000000000..aa04a66c95 --- /dev/null +++ b/contrib/libs/llvm12/include/llvm/CodeGen/BuiltinGCs.h @@ -0,0 +1,43 @@ +#pragma once + +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + +//===-- BuiltinGCs.h - Garbage collector linkage hacks --------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// +// +// This file contains hack functions to force linking in the builtin GC +// components. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CODEGEN_GCS_H +#define LLVM_CODEGEN_GCS_H + +namespace llvm { + +/// FIXME: Collector instances are not useful on their own. These no longer +/// serve any purpose except to link in the plugins. + +/// Ensure the definition of the builtin GCs gets linked in +void linkAllBuiltinGCs(); + +/// Creates an ocaml-compatible metadata printer. +void linkOcamlGCPrinter(); + +/// Creates an erlang-compatible metadata printer. +void linkErlangGCPrinter(); +} + +#endif + +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif |