LLVM API Documentation

Annotation.cpp File Reference

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

Include dependency graph for Annotation.cpp:

Go to the source code of this file.

Typedefs

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

Functions

static FactMapType & getFactMap ()
static void eraseFromFactMap (unsigned ID)

Variables

static unsigned IDCounter = 0
static ManagedStatic< IDMapType > IDMap
static FactMapType * TheFactMap = 0


Typedef Documentation

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

Definition at line 47 of file Annotation.cpp.

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

Definition at line 48 of file Annotation.cpp.

typedef std::map<const char*, unsigned, StrCmp> IDMapType

Definition at line 40 of file Annotation.cpp.


Function Documentation

static void eraseFromFactMap ( unsigned  ID  )  [static]

Definition at line 57 of file Annotation.cpp.

References TheFactMap.

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

static FactMapType& getFactMap (  )  [static]


Variable Documentation

unsigned IDCounter = 0 [static]

Definition at line 41 of file Annotation.cpp.

Definition at line 44 of file Annotation.cpp.

FactMapType* TheFactMap = 0 [static]

Definition at line 50 of file Annotation.cpp.

Referenced by eraseFromFactMap(), and getFactMap().