summaryrefslogtreecommitdiff
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
commit32c69dd1abf419742d99c59e7d54812e315cbb2d (patch)
treebc7e7f533dd4d5402f455a0427bca93fa956fbce
parent8d6ad83253a8fcf4dbf48850db096c27fc45c3f0 (diff)
downloadllvm-32c69dd1abf419742d99c59e7d54812e315cbb2d.tar.gz
llvm-32c69dd1abf419742d99c59e7d54812e315cbb2d.tar.bz2
llvm-32c69dd1abf419742d99c59e7d54812e315cbb2d.tar.xz
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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193134 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/IR/GCOV.cpp1
-rw-r--r--tools/llvm-cov/llvm-cov.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp
index e9baa5c8cb..b8907d01b4 100644
--- a/lib/IR/GCOV.cpp
+++ b/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/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp
index 7b21c5bae2..7404679145 100644
--- a/tools/llvm-cov/llvm-cov.cpp
+++ b/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;
}