mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
llvm-cov: Disentangle the coverage data logic from the display (NFC)
This splits the logic for actually looking up coverage information from the logic that displays it. These were tangled rather thoroughly so this change is a bit large, but it mostly consists of moving things around. The coverage lookup logic itself now lives in the library, rather than being spread between the library and the tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,7 +18,7 @@ using namespace llvm;
|
||||
using namespace coverage;
|
||||
|
||||
FunctionCoverageSummary
|
||||
FunctionCoverageSummary::get(const FunctionCoverageMapping &Function) {
|
||||
FunctionCoverageSummary::get(const coverage::FunctionRecord &Function) {
|
||||
// Compute the region coverage
|
||||
size_t NumCodeRegions = 0, CoveredRegions = 0;
|
||||
for (auto &CR : Function.CountedRegions) {
|
||||
|
Reference in New Issue
Block a user