LLVM API Documentation
#include <Annotation.h>
Public Types | |
| typedef Annotation *(*) | Factory (AnnotationID, const Annotable *, void *) |
Static Public Member Functions | |
| static AnnotationID | getID (const std::string &Name) |
| static const std::string & | getName (AnnotationID ID) |
| static AnnotationID | getID (const std::string &Name, Factory Fact, void *Data=0) |
| static void | registerAnnotationFactory (AnnotationID ID, Factory Func, void *ExtraData=0) |
| static Annotation * | createAnnotation (AnnotationID ID, const Annotable *Obj) |
Definition at line 167 of file Annotation.h.
| typedef Annotation*(*) llvm::AnnotationManager::Factory(AnnotationID, const Annotable *, void *) |
Definition at line 168 of file Annotation.h.
| AnnotationID AnnotationManager::getID | ( | const std::string & | Name | ) | [static] |
Definition at line 55 of file Annotation.cpp.
References getIDMap(), and IDCounter.
Referenced by getID().
| const std::string & AnnotationManager::getName | ( | AnnotationID | ID | ) | [static] |
| AnnotationID AnnotationManager::getID | ( | const std::string & | Name, | |
| Factory | Fact, | |||
| void * | Data = 0 | |||
| ) | [static] |
| void AnnotationManager::registerAnnotationFactory | ( | AnnotationID | ID, | |
| Factory | Func, | |||
| void * | ExtraData = 0 | |||
| ) | [static] |
Definition at line 88 of file Annotation.cpp.
References eraseFromFactMap(), and getFactMap().
Referenced by getID().
| Annotation * AnnotationManager::createAnnotation | ( | AnnotationID | ID, | |
| const Annotable * | Obj | |||
| ) | [static] |
Definition at line 99 of file Annotation.cpp.
References getFactMap().
Referenced by llvm::Annotable::getOrCreateAnnotation().