diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ADT/Statistic.h | 5 | ||||
| -rw-r--r-- | llvm/lib/Support/Statistic.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/Statistic.h b/llvm/include/llvm/ADT/Statistic.h index dabacf41cfe..99160da1063 100644 --- a/llvm/include/llvm/ADT/Statistic.h +++ b/llvm/include/llvm/ADT/Statistic.h @@ -24,7 +24,8 @@ #ifndef LLVM_ADT_STATISTIC_H #define LLVM_ADT_STATISTIC_H -#include <iosfwd> +#include <ostream> +#include "llvm/Support/Compiler.h" namespace llvm { @@ -85,6 +86,8 @@ public: const Statistic &operator/=(const DataType &V) { Value /= V; return *this; } }; +EXTERN_TEMPLATE_INSTANTIATION(class Statistic<unsigned>); + } // End llvm namespace #endif 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. // |

