diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-30 04:17:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-30 04:17:00 +0000 |
commit | 52c917190a8094b4e5f6cc0b30e373638268f3a4 (patch) | |
tree | b273d1e242fb944ae1c47b328072366a412f73e4 /include/llvm/ADT/Statistic.h | |
parent | 3947a76e21c7ec7342cb5744c89a993f68a241b6 (diff) | |
download | llvm-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 'include/llvm/ADT/Statistic.h')
-rw-r--r-- | include/llvm/ADT/Statistic.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h index dabacf41cf..99160da106 100644 --- a/include/llvm/ADT/Statistic.h +++ b/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 |