Extend annotations to pass data pointers around to the functions
authorChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2001 05:17:47 +0000 (05:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2001 05:17:47 +0000 (05:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Annotation.h
include/llvm/Annotation.h
include/llvm/Support/Annotation.h

index 933ca19db3dbe18e4790575000fe4968f995bf6f..c444ce606626a835a736417321bc42771a30be82 100644 (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.
index 933ca19db3dbe18e4790575000fe4968f995bf6f..c444ce606626a835a736417321bc42771a30be82 100644 (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.
index 933ca19db3dbe18e4790575000fe4968f995bf6f..c444ce606626a835a736417321bc42771a30be82 100644 (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.