LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::Registry< T >::Add< V > Class Template Reference

A static registration template. More...

#include "llvm/Support/Registry.h"

Public Member Functions

 Add (StringRef Name, StringRef Desc)

Detailed Description

template<typename T>
template<typename V>
class llvm::Registry< T >::Add< V >

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.

Definition at line 115 of file Registry.h.

Constructor & Destructor Documentation

◆ Add()

template<typename T >
template<typename V>
llvm::Registry< T >::Add< V >::Add ( StringRef  Name,
StringRef  Desc 

Definition at line 122 of file Registry.h.

The documentation for this class was generated from the following file: