LLVM API Documentation

Annotation.cpp File Reference

#include "llvm/Support/Annotation.h"
#include <map>

Include dependency graph for Annotation.cpp:

Go to the source code of this file.

Typedefs

typedef std::map< const std::string,
unsigned > 
IDMapType
typedef Annotation *(*) AnnFactory (AnnotationID, const Annotable *, void *)
typedef std::map< unsigned,
std::pair< AnnFactory, void * > > 
FactMapType

Functions

static IDMapTypegetIDMap ()
static FactMapTypegetFactMap ()
static void eraseFromFactMap (unsigned ID)

Variables

static unsigned IDCounter = 0
static FactMapTypeTheFactMap = 0


Typedef Documentation

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

Definition at line 36 of file Annotation.cpp.

typedef std::map<unsigned, std::pair<AnnFactory,void*> > FactMapType

Definition at line 37 of file Annotation.cpp.

typedef std::map<const std::string, unsigned> IDMapType

Definition at line 29 of file Annotation.cpp.


Function Documentation

static void eraseFromFactMap ( unsigned  ID  )  [static]

Definition at line 46 of file Annotation.cpp.

References TheFactMap.

Referenced by llvm::AnnotationManager::registerAnnotationFactory().

static FactMapType& getFactMap (  )  [static]

Definition at line 40 of file Annotation.cpp.

References TheFactMap.

Referenced by llvm::AnnotationManager::createAnnotation(), and llvm::AnnotationManager::registerAnnotationFactory().

static IDMapType& getIDMap (  )  [static]

Definition at line 33 of file Annotation.cpp.

Referenced by llvm::AnnotationManager::getID(), and llvm::AnnotationManager::getName().


Variable Documentation

unsigned IDCounter = 0 [static]

Definition at line 30 of file Annotation.cpp.

Referenced by llvm::AnnotationManager::getID().

FactMapType* TheFactMap = 0 [static]

Definition at line 39 of file Annotation.cpp.

Referenced by eraseFromFactMap(), and getFactMap().