mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
d9900c9442
registry for dynamically-loaded garbage collection compiler plugins. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42415 91177308-0d34-0410-b5e6-96231b3b80d8
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
//===-- Collectors.h - Garbage collector registry -------------------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file was developed by Gordon Henriksen and is distributed under
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file declares the CollectorRegistry class, which is used to discover
|
|
// pluggable garbage collectors.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_CODEGEN_COLLECTORS_H
|
|
#define LLVM_CODEGEN_COLLECTORS_H
|
|
|
|
#include "llvm/Support/Registry.h"
|
|
|
|
namespace llvm {
|
|
|
|
class Collector;
|
|
|
|
/// The collector registry uses all the defaults from Registry.
|
|
///
|
|
typedef Registry<Collector> CollectorRegistry;
|
|
|
|
/// Creates an ocaml-compatible garbage collector.
|
|
Collector *createOcamlCollector();
|
|
|
|
/// Creates a shadow stack garbage collector. This collector requires no code
|
|
/// generator support.
|
|
Collector *createShadowStackCollector();
|
|
}
|
|
|
|
#endif
|