[llvm-commits] CVS: llvm/include/Support/Annotation.h

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 27 13:37:01 PDT 2004


Changes in directory llvm/include/Support:

Annotation.h updated: 1.14 -> 1.15

---
Log message:

Get rid of Annotable's vtable.  If anyone deletes an object through an Annotable*,
they get what they deserve.

This reduces the size of Instruction & Function by 4 bytes each.



---
Diffs of the changes:  (+1 -1)

Index: llvm/include/Support/Annotation.h
diff -u llvm/include/Support/Annotation.h:1.14 llvm/include/Support/Annotation.h:1.15
--- llvm/include/Support/Annotation.h:1.14	Thu Feb 26 01:23:53 2004
+++ llvm/include/Support/Annotation.h	Sun Jun 27 13:36:39 2004
@@ -95,7 +95,7 @@
   void operator=(const Annotable &);   // Do not implement
 public:
   Annotable() : AnnotationList(0) {}
-  virtual ~Annotable();    // Virtual because it's designed to be subclassed...
+  ~Annotable();
 
   // getAnnotation - Search the list for annotations of the specified ID.  The
   // pointer returned is either null (if no annotations of the specified ID





More information about the llvm-commits mailing list