LLVM API Documentation
#include <Registry.h>
Public Member Functions | |
Add (const char *Name, const char *Desc) | |
A static registration template. Use like such:
Registry<Collector>::Add<FancyGC> X("fancy-gc", "Newfangled garbage collector.");
Use of this template requires that:
The registered subclass has a default constructor. 2. The registry entry type has a constructor compatible with this signature:
entry(const char *Name, const char *ShortDesc, T *(*Ctor)());
If you have more elaborate requirements, then copy and modify.
Definition at line 194 of file Registry.h.
|
inline |
Definition at line 201 of file Registry.h.