From: Chris Lattner Date: Mon, 27 Aug 2001 05:17:47 +0000 (+0000) Subject: Extend annotations to pass data pointers around to the functions X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a0facd063bf720206cadc82892918e4346934fe7;p=oota-llvm.git 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 --- diff --git a/include/Support/Annotation.h b/include/Support/Annotation.h index 933ca19db3d..c444ce60662 100644 --- a/include/Support/Annotation.h +++ b/include/Support/Annotation.h @@ -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. diff --git a/include/llvm/Annotation.h b/include/llvm/Annotation.h index 933ca19db3d..c444ce60662 100644 --- a/include/llvm/Annotation.h +++ b/include/llvm/Annotation.h @@ -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. diff --git a/include/llvm/Support/Annotation.h b/include/llvm/Support/Annotation.h index 933ca19db3d..c444ce60662 100644 --- a/include/llvm/Support/Annotation.h +++ b/include/llvm/Support/Annotation.h @@ -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.