Extend annotations to pass data pointers around to the functions

llvm-svn: 374
This commit is contained in:
Chris Lattner 2001-08-27 05:17:47 +00:00
parent 6b99609e1f
commit 8aaab6b9c1
2 changed files with 4 additions and 2 deletions

View File

@ -176,7 +176,8 @@ struct AnnotationManager {
// Annotable::getOrCreateAnnotation method.
//
static void registerAnnotationFactory(AnnotationID ID,
Annotation *(*Func)(AnnotationID, Annotable *));
Annotation *(*Func)(AnnotationID, Annotable *, void*),
void *ExtraData = 0);
// createAnnotation - Create an annotation of the specified ID for the
// specified object, using a register annotation creation function.

View File

@ -176,7 +176,8 @@ struct AnnotationManager {
// Annotable::getOrCreateAnnotation method.
//
static void registerAnnotationFactory(AnnotationID ID,
Annotation *(*Func)(AnnotationID, Annotable *));
Annotation *(*Func)(AnnotationID, Annotable *, void*),
void *ExtraData = 0);
// createAnnotation - Create an annotation of the specified ID for the
// specified object, using a register annotation creation function.