Skip to content

Commit

Permalink
Move the printing of llvm-cov information out from collectLineCounts().
Browse files Browse the repository at this point in the history
collectLineCounts() should only organize the output data. This is done in
anticipation of subsequent changes which will pass in GCNO and GCDA filenames
into the print function where it is printed similar to the gcov output.

Patch by Yuchen Wu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193134 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bob-wilson committed Oct 22, 2013
1 parent 8d6ad83 commit 32c69dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lib/IR/GCOV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ void GCOVFile::collectLineCounts(FileInfo &FI) {
for (SmallVectorImpl<GCOVFunction *>::iterator I = Functions.begin(),
E = Functions.end(); I != E; ++I)
(*I)->collectLineCounts(FI);
FI.print();
}

//===----------------------------------------------------------------------===//
Expand Down
1 change: 1 addition & 0 deletions tools/llvm-cov/llvm-cov.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@ int main(int argc, char **argv) {

FileInfo FI;
GF.collectLineCounts(FI);
FI.print();
return 0;
}

0 comments on commit 32c69dd

Please sign in to comment.