summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1c12a881fbdef271e25d5ab9f472e29d7ef46d9d (patch)
treec2432dd13a5625c487ce5f772f2e0e99318845ce /llvm/lib/Support/Statistic.cpp
parent7aa4590f674615c86da4a095cf7e4650983fdc5b (diff)
downloadbcm5719-llvm-1c12a881fbdef271e25d5ab9f472e29d7ef46d9d.tar.gz
bcm5719-llvm-1c12a881fbdef271e25d5ab9f472e29d7ef46d9d.zip
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. llvm-svn: 28898
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index f94f246bae4..d771f4dcfd3 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/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()) {
OpenPOWER on IntegriCloud