Move the printing of llvm-cov information out from collectLineCounts().

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!

llvm-svn: 193134
This commit is contained in:
Bob Wilson 2013-10-22 00:09:03 +00:00
parent efe4520b72
commit 2f19d42f6e
2 changed files with 1 additions and 1 deletions

View File

@ -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();
}
//===----------------------------------------------------------------------===//

View File

@ -74,5 +74,6 @@ int main(int argc, char **argv) {
FileInfo FI;
GF.collectLineCounts(FI);
FI.print();
return 0;
}