Extend annotations to pass data pointers around to the functions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-08-27 05:17:47 +00:00
parent 491bff495f
commit a0facd063b
3 changed files with 6 additions and 3 deletions

View File

@ -176,7 +176,8 @@ struct AnnotationManager {
// Annotable::getOrCreateAnnotation method. // Annotable::getOrCreateAnnotation method.
// //
static void registerAnnotationFactory(AnnotationID ID, 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 // createAnnotation - Create an annotation of the specified ID for the
// specified object, using a register annotation creation function. // specified object, using a register annotation creation function.

View File

@ -176,7 +176,8 @@ struct AnnotationManager {
// Annotable::getOrCreateAnnotation method. // Annotable::getOrCreateAnnotation method.
// //
static void registerAnnotationFactory(AnnotationID ID, 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 // createAnnotation - Create an annotation of the specified ID for the
// specified object, using a register annotation creation function. // specified object, using a register annotation creation function.

View File

@ -176,7 +176,8 @@ struct AnnotationManager {
// Annotable::getOrCreateAnnotation method. // Annotable::getOrCreateAnnotation method.
// //
static void registerAnnotationFactory(AnnotationID ID, 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 // createAnnotation - Create an annotation of the specified ID for the
// specified object, using a register annotation creation function. // specified object, using a register annotation creation function.