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
Method Overview
- public Add<V>(llvm::StringRef Name, llvm::StringRef Desc)
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