From f5bed76353c0c87333577e7dcddcd50f3651de3f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 30 Aug 2006 04:17:00 +0000 Subject: Instantiate Statistic<> in one place, not in every .o file that uses it. llvm-svn: 29971 --- llvm/lib/Support/Statistic.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/Statistic.cpp') 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); + // -stats - Command line option to cause transformations to emit stats about // what they did. // -- cgit v1.2.3