Get rid of Annotable's vtable. If anyone deletes an object through an Annotable*,
authorChris Lattner <sabre@nondot.org>
Sun, 27 Jun 2004 18:36:39 +0000 (18:36 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 27 Jun 2004 18:36:39 +0000 (18:36 +0000)
they get what they deserve.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14433 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 9bd442a6c96540e87c95546895aa2ee28069796b..efca20a3ec0eb64e59eef1286c151e5b0a27fbb5 100644 (file)
@@ -95,7 +95,7 @@ class Annotable {
   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
index 9bd442a6c96540e87c95546895aa2ee28069796b..efca20a3ec0eb64e59eef1286c151e5b0a27fbb5 100644 (file)
@@ -95,7 +95,7 @@ class Annotable {
   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