mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
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
This commit is contained in:
@@ -24,7 +24,8 @@
|
|||||||
#ifndef LLVM_ADT_STATISTIC_H
|
#ifndef LLVM_ADT_STATISTIC_H
|
||||||
#define LLVM_ADT_STATISTIC_H
|
#define LLVM_ADT_STATISTIC_H
|
||||||
|
|
||||||
#include <iosfwd>
|
#include <ostream>
|
||||||
|
#include "llvm/Support/Compiler.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
@@ -85,6 +86,8 @@ public:
|
|||||||
const Statistic &operator/=(const DataType &V) { Value /= V; return *this; }
|
const Statistic &operator/=(const DataType &V) { Value /= V; return *this; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
EXTERN_TEMPLATE_INSTANTIATION(class Statistic<unsigned>);
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -33,6 +33,8 @@ namespace llvm { extern std::ostream *GetLibSupportInfoOutputFile(); }
|
|||||||
|
|
||||||
unsigned StatisticBase::NumStats = 0;
|
unsigned StatisticBase::NumStats = 0;
|
||||||
|
|
||||||
|
TEMPLATE_INSTANTIATION(class Statistic<unsigned>);
|
||||||
|
|
||||||
// -stats - Command line option to cause transformations to emit stats about
|
// -stats - Command line option to cause transformations to emit stats about
|
||||||
// what they did.
|
// what they did.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user