LLVM API Documentation
#include <RegistryParser.h>
Public Member Functions | |
void | initialize (cl::Option &O) |
Protected Member Functions | |
void | registered (const entry &E) |
A command-line parser for a registry. Use like such:
static cl::opt<Registry<Collector>::entry, false, RegistryParser<Collector> > GCOpt("gc", cl::desc("Garbage collector to use."), cl::value_desc());
To make use of the value:
Collector *TheCollector = GCOpt->instantiate();
Definition at line 34 of file RegistryParser.h.
void llvm::RegistryParser< T, U >::initialize | ( | cl::Option & | O | ) | [inline] |
Reimplemented from llvm::cl::generic_parser_base.
Definition at line 47 of file RegistryParser.h.
References llvm::Registry< T, U >::listener::init().
void llvm::RegistryParser< T, U >::registered | ( | const entry & | ) | [inline, protected, virtual] |
Called when an entry is added to the registry.
Implements llvm::Registry< T, U >::listener.
Definition at line 42 of file RegistryParser.h.
References llvm::cl::parser< const U::entry * >::addLiteralOption().