diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-09-17 21:48:52 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-09-17 21:48:52 +0000 |
| commit | 5cbed6e09ec1e046cbcc58d5e684a09538596e7f (patch) | |
| tree | 2b99ff49c6dc91cf03acd4ca27dd0e5fe5aecb4c /llvm/tools/llvm-cov/CodeCoverage.cpp | |
| parent | cf93cbb7a475e5ab0841f9227b013c271fc765df (diff) | |
| download | llvm-5cbed6e09ec1e046cbcc58d5e684a09538596e7f.zip llvm-5cbed6e09ec1e046cbcc58d5e684a09538596e7f.tar.gz llvm-5cbed6e09ec1e046cbcc58d5e684a09538596e7f.tar.bz2 | |
llvm-cov: Push some more debug output into the View (NFC)
llvm-svn: 217984
Diffstat (limited to 'llvm/tools/llvm-cov/CodeCoverage.cpp')
| -rw-r--r-- | llvm/tools/llvm-cov/CodeCoverage.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index eef4185..73ab317 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -190,22 +190,6 @@ CodeCoverageTool::getSourceFile(StringRef SourceFile) { return *LoadedSourceFiles.back().second; } -/// \brief Return a line start - line end range which contains -/// all the mapping regions of a given function with a particular file id. -std::pair<unsigned, unsigned> -findExpandedFileInterestingLineRange(unsigned FileID, - const FunctionCoverageMapping &Function) { - unsigned LineStart = std::numeric_limits<unsigned>::max(); - unsigned LineEnd = 0; - for (const auto &CR : Function.CountedRegions) { - if (CR.FileID != FileID) - continue; - LineStart = std::min(CR.LineStart, LineStart); - LineEnd = std::max(CR.LineEnd, LineEnd); - } - return std::make_pair(LineStart, LineEnd); -} - bool CodeCoverageTool::equivalentFiles(StringRef A, StringRef B) { if (CompareFilenamesOnly) return sys::path::filename(A).equals_lower(sys::path::filename(B)); @@ -270,14 +254,6 @@ CodeCoverageTool::findMainViewFileID(const FunctionCoverageMapping &Function, void CodeCoverageTool::createExpansionSubView( const CountedRegion &ExpandedRegion, const FunctionCoverageMapping &Function, SourceCoverageView &Parent) { - auto ExpandedLines = findExpandedFileInterestingLineRange( - ExpandedRegion.ExpandedFileID, Function); - if (ViewOpts.Debug) - llvm::errs() << "Expansion of " << ExpandedRegion.ExpandedFileID << ":" - << ExpandedLines.first << " -> " << ExpandedLines.second - << " @ " << ExpandedRegion.FileID << ", " - << ExpandedRegion.LineStart << ":" - << ExpandedRegion.ColumnStart << "\n"; auto SourceBuffer = getSourceFile(Function.Filenames[ExpandedRegion.ExpandedFileID]); if (!SourceBuffer) |
