forked from OSchip/llvm-project
SamplePGO - Clear coverage tracking when clearing per-function data.
llvm-svn: 253877
This commit is contained in:
parent
3280793234
commit
1ca881c4bb
|
@ -188,6 +188,7 @@ public:
|
|||
unsigned computeCoverage(unsigned Used, unsigned Total) const;
|
||||
unsigned countUsedSamples(const FunctionSamples *Samples) const;
|
||||
unsigned countBodySamples(const FunctionSamples *Samples) const;
|
||||
void clear() { SampleCoverage.clear(); }
|
||||
|
||||
private:
|
||||
typedef DenseMap<LineLocation, unsigned> BodySampleCoverageMap;
|
||||
|
@ -285,6 +286,7 @@ void SampleProfileLoader::clearFunctionData() {
|
|||
LI = nullptr;
|
||||
Predecessors.clear();
|
||||
Successors.clear();
|
||||
CoverageTracker.clear();
|
||||
}
|
||||
|
||||
/// \brief Returns the offset of lineno \p L to head_lineno \p H
|
||||
|
|
Loading…
Reference in New Issue