diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-10-22 00:09:03 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-10-22 00:09:03 +0000 |
commit | 2f19d42f6e604f68283516f73ab294ca1042e138 (patch) | |
tree | e7cc0e425b5b970d3fd8da0f47ec69e61110037b | |
parent | efe4520b72016d1cd404ace33bbe61a6d20ed745 (diff) | |
download | bcm5719-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.cpp | 1 | ||||
-rw-r--r-- | llvm/tools/llvm-cov/llvm-cov.cpp | 1 |
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; } |