diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-09-20 15:31:56 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-09-20 15:31:56 +0000 |
| commit | 953e2407edb956eb846a79fc0dce08d032ea0d66 (patch) | |
| tree | 617f3d06bf359ec67e4b312f2755e0453ce6cf9b /llvm/tools/llvm-cov/CoverageSummary.cpp | |
| parent | f584649ae397396016b1fbfc6fe8d8ea29e2ebf5 (diff) | |
| download | bcm5719-llvm-953e2407edb956eb846a79fc0dce08d032ea0d66.tar.gz bcm5719-llvm-953e2407edb956eb846a79fc0dce08d032ea0d66.zip | |
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.
llvm-svn: 218184
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageSummary.cpp')
| -rw-r--r-- | llvm/tools/llvm-cov/CoverageSummary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/CoverageSummary.cpp b/llvm/tools/llvm-cov/CoverageSummary.cpp index c65c5bee00f..8df3bebbacf 100644 --- a/llvm/tools/llvm-cov/CoverageSummary.cpp +++ b/llvm/tools/llvm-cov/CoverageSummary.cpp @@ -27,8 +27,8 @@ unsigned CoverageSummary::getFileID(StringRef Filename) { return Filenames.size() - 1; } -void CoverageSummary::createSummaries( - ArrayRef<coverage::FunctionCoverageMapping> Functions) { +void +CoverageSummary::createSummaries(ArrayRef<coverage::FunctionRecord> Functions) { std::vector<std::pair<unsigned, size_t>> FunctionFileIDs; FunctionFileIDs.resize(Functions.size()); |

