class Registry::Add
Declaration
template <typename V>
class Registry::Add { /* full declaration omitted */ };
Description
A static registration template. Use like such: Registry <Collector >::Add <FancyGC > X("fancy-gc", "Newfangled garbage collector."); Use of this template requires that: 1. The registered subclass has a default constructor.
Declared at: llvm/include/llvm/Support/Registry.h:114
Templates
- V
Member Variables
- private llvm::Registry::entry Entry
- private llvm::Registry::node Node
Method Overview
Methods
¶Add<V>(llvm::StringRef Name, llvm::StringRef Desc)
Add<V>(llvm::StringRef Name, llvm::StringRef Desc)
Declared at: llvm/include/llvm/Support/Registry.h:121
Parameters
- llvm::StringRef Name
- llvm::StringRef Desc
¶static std::unique_ptr<T> CtorFn()
static std::unique_ptr<T> CtorFn()
Declared at: llvm/include/llvm/Support/Registry.h:118