aboutsummaryrefslogtreecommitdiffstats
path: root/include/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-08-27 05:17:47 +0000
committerChris Lattner <sabre@nondot.org>2001-08-27 05:17:47 +0000
commita0facd063bf720206cadc82892918e4346934fe7 (patch)
tree7a398e23048a67c52368e8d7ae2508677fe5fff5 /include/Support
parent491bff495fa248d0e3b2c9e3bfc46331cec9a047 (diff)
downloadexternal_llvm-a0facd063bf720206cadc82892918e4346934fe7.zip
external_llvm-a0facd063bf720206cadc82892918e4346934fe7.tar.gz
external_llvm-a0facd063bf720206cadc82892918e4346934fe7.tar.bz2
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
Diffstat (limited to 'include/Support')
-rw-r--r--include/Support/Annotation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/Support/Annotation.h b/include/Support/Annotation.h
index 933ca19..c444ce6 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.