LLVM  8.0.1
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 
)
inline

Definition at line 122 of file Registry.h.


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