llvm-cov: Rework the API for getting the coverage of a file (NFC)
authorJustin Bogner <mail@justinbogner.com>
Wed, 17 Sep 2014 18:23:47 +0000 (18:23 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 17 Sep 2014 18:23:47 +0000 (18:23 +0000)
commitb3edb564859b93eabc86392c38d925384f136e0e
tree51ed6222b309f91d102823ec9ab38ce9f2496970
parente5d8abe4f19d517e61bb04b0477c3349040c4484
llvm-cov: Rework the API for getting the coverage of a file (NFC)

This encapsulates how we handle the coverage regions of a file or
function. In the old model, the user had to deal with nested regions,
so they needed to maintain their own auxiliary data structures to get
any useful information out of this. The new API provides a sequence of
non-overlapping coverage segments, which makes it possible to render
coverage information in a single pass and avoids a fair amount of
extra work.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217975 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-cov/CodeCoverage.cpp
tools/llvm-cov/RenderingSupport.h
tools/llvm-cov/SourceCoverageDataManager.cpp
tools/llvm-cov/SourceCoverageDataManager.h
tools/llvm-cov/SourceCoverageView.cpp
tools/llvm-cov/SourceCoverageView.h