diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-06 17:46:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-06 17:46:33 +0000 |
commit | 700b873130d0865283319f6e328f1887b19f25f0 (patch) | |
tree | 0c3de26f259a9ce6c47d509613ac6e0671d01849 /llvm/lib/Support | |
parent | acbb456dde4a1561764504b980f9a40cc682e962 (diff) | |
download | bcm5719-llvm-700b873130d0865283319f6e328f1887b19f25f0.tar.gz bcm5719-llvm-700b873130d0865283319f6e328f1887b19f25f0.zip |
Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.
llvm-svn: 32279
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Statistic.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Support/Timer.cpp | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 56bbfe9d7a9..cd516626361 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -15,7 +15,7 @@ // This is useful for reporting information like the number of instructions // simplified, optimized or removed by various transformations, like this: // -// static Statistic<> NumInstEliminated("GCSE - Number of instructions killed"); +// static Statistic NumInstEliminated("GCSE - Number of instructions killed"); // // Later, in the code: ++NumInstEliminated; // @@ -33,8 +33,6 @@ 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. // diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index 0c4f18f6307..a39f169cb7b 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/lib/Support/Timer.cpp @@ -27,7 +27,7 @@ namespace llvm { extern std::ostream *GetLibSupportInfoOutputFile(); } // getLibSupportInfoOutputFilename - This ugly hack is brought to you courtesy // of constructor/destructor ordering being unspecified by C++. Basically the -// problem is that a Statistic<> object gets destroyed, which ends up calling +// problem is that a Statistic object gets destroyed, which ends up calling // 'GetLibSupportInfoOutputFile()' (below), which calls this function. // LibSupportInfoOutputFilename used to be a global variable, but sometimes it // would get destroyed before the Statistic, causing havoc to ensue. We "fix" |