git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253877
91177308-0d34-0410-b5e6-
96231b3b80d8
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;
LI = nullptr;
Predecessors.clear();
Successors.clear();
+ CoverageTracker.clear();
}
/// \brief Returns the offset of lineno \p L to head_lineno \p H