llvm-cov: add code coverage tool that's based on coverage mapping format and clang...
authorAlex Lorenz <arphaman@gmail.com>
Fri, 22 Aug 2014 22:56:03 +0000 (22:56 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 22 Aug 2014 22:56:03 +0000 (22:56 +0000)
commit6c7a6a1ba2ba93a7d7e96d88c39c3cd48ff082e5
treeea671ee06216a032eecbaf3de1411a173d8e46d4
parent8be5600f0ad707b89d7f7d1c4cca202f0d3add07
llvm-cov: add code coverage tool that's based on coverage mapping format and clang's pgo.

This commit expands llvm-cov's functionality by adding support for a new code coverage
tool that uses LLVM's coverage mapping format and clang's instrumentation based profiling.
The gcov compatible tool can be invoked by supplying the 'gcov' command as the first argument,
or by modifying the tool's name to end with 'gcov'.

Differential Revision: http://reviews.llvm.org/D4445

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216300 91177308-0d34-0410-b5e6-96231b3b80d8
32 files changed:
lib/ProfileData/CoverageMappingReader.cpp
test/tools/llvm-cov/Inputs/README
test/tools/llvm-cov/Inputs/highlightedRanges.covmapping [new file with mode: 0644]
test/tools/llvm-cov/Inputs/highlightedRanges.profdata [new file with mode: 0644]
test/tools/llvm-cov/Inputs/lineExecutionCounts.covmapping [new file with mode: 0644]
test/tools/llvm-cov/Inputs/lineExecutionCounts.profdata [new file with mode: 0644]
test/tools/llvm-cov/Inputs/regionMarkers.covmapping [new file with mode: 0644]
test/tools/llvm-cov/Inputs/regionMarkers.profdata [new file with mode: 0644]
test/tools/llvm-cov/showHighlightedRanges.cpp [new file with mode: 0644]
test/tools/llvm-cov/showLineExecutionCounts.cpp [new file with mode: 0644]
test/tools/llvm-cov/showRegionMarkers.cpp [new file with mode: 0644]
tools/llvm-cov/CMakeLists.txt
tools/llvm-cov/CodeCoverage.cpp [new file with mode: 0644]
tools/llvm-cov/CoverageFilters.cpp [new file with mode: 0644]
tools/llvm-cov/CoverageFilters.h [new file with mode: 0644]
tools/llvm-cov/CoverageReport.cpp [new file with mode: 0644]
tools/llvm-cov/CoverageReport.h [new file with mode: 0644]
tools/llvm-cov/CoverageSummary.cpp [new file with mode: 0644]
tools/llvm-cov/CoverageSummary.h [new file with mode: 0644]
tools/llvm-cov/CoverageSummaryInfo.cpp [new file with mode: 0644]
tools/llvm-cov/CoverageSummaryInfo.h [new file with mode: 0644]
tools/llvm-cov/CoverageViewOptions.h [new file with mode: 0644]
tools/llvm-cov/FunctionCoverageMapping.h [new file with mode: 0644]
tools/llvm-cov/LLVMBuild.txt
tools/llvm-cov/Makefile
tools/llvm-cov/RenderingSupport.h [new file with mode: 0644]
tools/llvm-cov/SourceCoverageDataManager.cpp [new file with mode: 0644]
tools/llvm-cov/SourceCoverageDataManager.h [new file with mode: 0644]
tools/llvm-cov/SourceCoverageView.cpp [new file with mode: 0644]
tools/llvm-cov/SourceCoverageView.h [new file with mode: 0644]
tools/llvm-cov/TestingSupport.cpp [new file with mode: 0644]
tools/llvm-cov/llvm-cov.cpp