llvm-cov: Sink some reporting logic into CoverageMapping
authorJustin Bogner <mail@justinbogner.com>
Fri, 14 Nov 2014 01:50:32 +0000 (01:50 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 14 Nov 2014 01:50:32 +0000 (01:50 +0000)
commitd5fca9242501b708483efaf62e0f8ad86518569d
tree84c6ed701289d60c52295c1082088d691ab1c043
parentd3be12a6c7e89955d6f528a7ba3d1966309b7853
llvm-cov: Sink some reporting logic into CoverageMapping

This teaches CoverageMapping::getCoveredFunctions to filter to a
particular file and uses that to replace most of the logic found in
llvm-cov report.

llvm-svn: 221962
llvm/include/llvm/ProfileData/CoverageMapping.h
llvm/lib/ProfileData/CoverageMapping.cpp
llvm/tools/llvm-cov/CodeCoverage.cpp
llvm/tools/llvm-cov/CoverageSummary.cpp
llvm/tools/llvm-cov/CoverageSummary.h