summaryrefslogtreecommitdiff
path: root/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-21 16:53:47 +0000
committerChris Lattner <sabre@nondot.org>2006-06-21 16:53:47 +0000
commit70aa33ee37fede7fb84de02daa38557ffd366458 (patch)
tree9f7faee50e86f0107e468ece963a7d71e8c3cbeb /lib/Support/Statistic.cpp
parent0ad19703aef030ff92c7ccd28b741dc2da086e10 (diff)
downloadllvm-70aa33ee37fede7fb84de02daa38557ffd366458.tar.gz
llvm-70aa33ee37fede7fb84de02daa38557ffd366458.tar.bz2
llvm-70aa33ee37fede7fb84de02daa38557ffd366458.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r--lib/Support/Statistic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index f94f246bae..d771f4dcfd 100644
--- a/lib/Support/Statistic.cpp
+++ b/lib/Support/Statistic.cpp
@@ -61,6 +61,10 @@ struct StatRecord {
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()) {