summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2013-10-22 00:09:03 +0000
committerBob Wilson <bob.wilson@apple.com>2013-10-22 00:09:03 +0000
commit2f19d42f6e604f68283516f73ab294ca1042e138 (patch)
treee7cc0e425b5b970d3fd8da0f47ec69e61110037b
parentefe4520b72016d1cd404ace33bbe61a6d20ed745 (diff)
downloadbcm5719-llvm-2f19d42f6e604f68283516f73ab294ca1042e138.tar.gz
bcm5719-llvm-2f19d42f6e604f68283516f73ab294ca1042e138.zip
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
-rw-r--r--llvm/lib/IR/GCOV.cpp1
-rw-r--r--llvm/tools/llvm-cov/llvm-cov.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/GCOV.cpp b/llvm/lib/IR/GCOV.cpp
index e9baa5c8cbc..b8907d01b43 100644
--- a/llvm/lib/IR/GCOV.cpp
+++ b/llvm/lib/IR/GCOV.cpp
@@ -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();
}
//===----------------------------------------------------------------------===//
diff --git a/llvm/tools/llvm-cov/llvm-cov.cpp b/llvm/tools/llvm-cov/llvm-cov.cpp
index 7b21c5bae20..74046791456 100644
--- a/llvm/tools/llvm-cov/llvm-cov.cpp
+++ b/llvm/tools/llvm-cov/llvm-cov.cpp
@@ -74,5 +74,6 @@ int main(int argc, char **argv) {
FileInfo FI;
GF.collectLineCounts(FI);
+ FI.print();
return 0;
}
OpenPOWER on IntegriCloud