LLVM API Documentation

llvm::AnnotationManager Struct Reference

#include <Annotation.h>

List of all members.

Public Types

typedef Annotation *(* Factory )(AnnotationID, const Annotable *, void *)

Static Public Member Functions

static AnnotationID getID (const char *Name)
static const char * getName (AnnotationID ID)
static AnnotationID getID (const char *Name, Factory Fact, void *Data=0)
static void registerAnnotationFactory (AnnotationID ID, Factory Func, void *ExtraData=0)
static Annotation * createAnnotation (AnnotationID ID, const Annotable *Obj)


Detailed Description

Definition at line 168 of file Annotation.h.


Member Typedef Documentation


Member Function Documentation

AnnotationID AnnotationManager::getID ( const char *  Name  )  [static]

Definition at line 66 of file Annotation.cpp.

Referenced by getID().

const char * AnnotationManager::getName ( AnnotationID  ID  )  [static]

Definition at line 87 of file Annotation.cpp.

References llvm::AnnotationID::ID, and TheMap.

AnnotationID AnnotationManager::getID ( const char *  Name,
Factory  Fact,
void *  Data = 0 
) [static]

Definition at line 77 of file Annotation.cpp.

References getID(), and registerAnnotationFactory().

void AnnotationManager::registerAnnotationFactory ( AnnotationID  ID,
Factory  Func,
void *  ExtraData = 0 
) [static]

Definition at line 99 of file Annotation.cpp.

References eraseFromFactMap(), getFactMap(), and llvm::AnnotationID::ID.

Referenced by getID().

Annotation * AnnotationManager::createAnnotation ( AnnotationID  ID,
const Annotable *  Obj 
) [static]

Definition at line 110 of file Annotation.cpp.

References getFactMap(), and llvm::AnnotationID::ID.

Referenced by llvm::Annotable::getOrCreateAnnotation().


The documentation for this struct was generated from the following files: