summaryrefslogtreecommitdiff
path: root/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
commit52c917190a8094b4e5f6cc0b30e373638268f3a4 (patch)
treeb273d1e242fb944ae1c47b328072366a412f73e4 /lib/Support/Statistic.cpp
parent3947a76e21c7ec7342cb5744c89a993f68a241b6 (diff)
downloadllvm-52c917190a8094b4e5f6cc0b30e373638268f3a4.tar.gz
llvm-52c917190a8094b4e5f6cc0b30e373638268f3a4.tar.bz2
llvm-52c917190a8094b4e5f6cc0b30e373638268f3a4.tar.xz
Instantiate Statistic<> in one place, not in every .o file that uses it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r--lib/Support/Statistic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index d771f4dcfd..56bbfe9d7a 100644
--- a/lib/Support/Statistic.cpp
+++ b/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.
//