diff options
Diffstat (limited to 'include/llvm/Support/Annotation.h')
-rw-r--r-- | include/llvm/Support/Annotation.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Support/Annotation.h b/include/llvm/Support/Annotation.h index 2be1c10616..dcdcf22454 100644 --- a/include/llvm/Support/Annotation.h +++ b/include/llvm/Support/Annotation.h @@ -172,13 +172,12 @@ struct AnnotationManager { //===--------------------------------------------------------------------===// // Basic ID <-> Name map functionality - static AnnotationID getID(const std::string &Name); // Name -> ID - static const std::string &getName(AnnotationID ID); // ID -> Name + static AnnotationID getID(const char *Name); // Name -> ID + static const char *getName(AnnotationID ID); // ID -> Name // getID - Name -> ID + registration of a factory function for demand driven // annotation support. - static AnnotationID getID(const std::string &Name, Factory Fact, - void *Data = 0); + static AnnotationID getID(const char *Name, Factory Fact, void *Data = 0); //===--------------------------------------------------------------------===// // Annotation creation on demand support... |