summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-30 04:17:00 +0000
committerChris Lattner <sabre@nondot.org>2006-08-30 04:17:00 +0000
commitf5bed76353c0c87333577e7dcddcd50f3651de3f (patch)
treef0154f0bebe2654b86df36c806899f1f989f61d3 /llvm/lib/Support/Statistic.cpp
parent5f8f9af65c5bfe5817422f6f5ecdbb9eba98e2a4 (diff)
downloadbcm5719-llvm-f5bed76353c0c87333577e7dcddcd50f3651de3f.tar.gz
bcm5719-llvm-f5bed76353c0c87333577e7dcddcd50f3651de3f.zip
Instantiate Statistic<> in one place, not in every .o file that uses it.
llvm-svn: 29971
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index d771f4dcfd3..56bbfe9d7a9 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -33,6 +33,8 @@ namespace llvm { extern std::ostream *GetLibSupportInfoOutputFile(); }
unsigned StatisticBase::NumStats = 0;
+TEMPLATE_INSTANTIATION(class Statistic<unsigned>);
+
// -stats - Command line option to cause transformations to emit stats about
// what they did.
//
OpenPOWER on IntegriCloud