Changes in directory llvm/include/llvm/ADT:

Statistic.h updated: 1.15 -> 1.16
---
Log message:

Add some out-of-line virtual dtors so that the class has a "home", preventing
vtables for (e.g.) Instruction from being emitted into every .o file.


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

 Statistic.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/ADT/Statistic.h
diff -u llvm/include/llvm/ADT/Statistic.h:1.15 
llvm/include/llvm/ADT/Statistic.h:1.16
--- llvm/include/llvm/ADT/Statistic.h:1.15      Sun Jan 22 17:43:45 2006
+++ llvm/include/llvm/ADT/Statistic.h   Wed Jun 21 11:53:47 2006
@@ -37,7 +37,8 @@
   StatisticBase(const char *name, const char *desc) : Name(name), Desc(desc) {
     ++NumStats;  // Keep track of how many stats are created...
   }
-  virtual ~StatisticBase() {}
+  // Out of line virtual dtor, to give the vtable etc a home.
+  virtual ~StatisticBase();
 
   // destroy - Called by subclass dtor so that we can still invoke virtual
   // functions on the subclass.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to