[llvm-cov] Pass LineCoverageStats in SourceCoverageView. NFC.
authorVedant Kumar <vsk@apple.com>
Wed, 18 Oct 2017 18:52:28 +0000 (18:52 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 18 Oct 2017 18:52:28 +0000 (18:52 +0000)
commit08a0a3100389dc850729673e6591a539693c1fe0
treeb9d10dcab07c0aa7b4f56937fb5160f37330b955
parent988faf87f8067646431dca3e238147f316d84bcb
[llvm-cov] Pass LineCoverageStats in SourceCoverageView. NFC.

Instead of copying around the wrapped segment and the list of line
segments, just pass a reference to a LineCoverageStats object. This
simplifies the interface. It also makes an upcoming change to suppress
distracting highlights possible.

llvm-svn: 316108
llvm/tools/llvm-cov/SourceCoverageView.cpp
llvm/tools/llvm-cov/SourceCoverageView.h
llvm/tools/llvm-cov/SourceCoverageViewHTML.cpp
llvm/tools/llvm-cov/SourceCoverageViewHTML.h
llvm/tools/llvm-cov/SourceCoverageViewText.cpp
llvm/tools/llvm-cov/SourceCoverageViewText.h