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

Bob Wilson bob.wilson at apple.com
Mon Oct 21 17:09:04 PDT 2013


Author: bwilson
Date: Mon Oct 21 19:09:03 2013
New Revision: 193134

URL: http://llvm.org/viewvc/llvm-project?rev=193134&view=rev
Log:
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!

Modified:
    llvm/trunk/lib/IR/GCOV.cpp
    llvm/trunk/tools/llvm-cov/llvm-cov.cpp

Modified: llvm/trunk/lib/IR/GCOV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/GCOV.cpp?rev=193134&r1=193133&r2=193134&view=diff
==============================================================================
--- llvm/trunk/lib/IR/GCOV.cpp (original)
+++ llvm/trunk/lib/IR/GCOV.cpp Mon Oct 21 19:09:03 2013
@@ -74,7 +74,6 @@ void GCOVFile::collectLineCounts(FileInf
   for (SmallVectorImpl<GCOVFunction *>::iterator I = Functions.begin(),
          E = Functions.end(); I != E; ++I) 
     (*I)->collectLineCounts(FI);
-  FI.print();
 }
 
 //===----------------------------------------------------------------------===//

Modified: llvm/trunk/tools/llvm-cov/llvm-cov.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/llvm-cov.cpp?rev=193134&r1=193133&r2=193134&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/llvm-cov.cpp (original)
+++ llvm/trunk/tools/llvm-cov/llvm-cov.cpp Mon Oct 21 19:09:03 2013
@@ -74,5 +74,6 @@ int main(int argc, char **argv) {
 
   FileInfo FI;
   GF.collectLineCounts(FI);
+  FI.print();
   return 0;
 }





More information about the llvm-commits mailing list