[llvm-commits] CVS: llvm/lib/Support/Statistic.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 21 09:54:01 PDT 2006
Changes in directory llvm/lib/Support:
Statistic.cpp updated: 1.16 -> 1.17
---
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: (+4 -0)
Statistic.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Support/Statistic.cpp
diff -u llvm/lib/Support/Statistic.cpp:1.16 llvm/lib/Support/Statistic.cpp:1.17
--- llvm/lib/Support/Statistic.cpp:1.16 Thu Apr 21 17:52:05 2005
+++ llvm/lib/Support/Statistic.cpp Wed Jun 21 11:53:47 2006
@@ -61,6 +61,10 @@
static std::vector<StatRecord> *AccumStats = 0;
+// Out of line virtual dtor, to give the vtable etc a home.
+StatisticBase::~StatisticBase() {
+}
+
// Print information when destroyed, iff command line option is specified
void StatisticBase::destroy() const {
if (Enabled && hasSomeData()) {
More information about the llvm-commits
mailing list