summaryrefslogtreecommitdiff
path: root/tools/llvm-cov/llvm-cov.cpp
diff options
context:
space:
mode:
authorYuchen Wu <yuchenericwu@hotmail.com>2013-12-04 04:49:23 +0000
committerYuchen Wu <yuchenericwu@hotmail.com>2013-12-04 04:49:23 +0000
commit812ad83e58f94c006034b942b9482ec1331ae3a2 (patch)
treeccd2f2f07e4a50c86c57d61cf1838889c90ffcb9 /tools/llvm-cov/llvm-cov.cpp
parent045d5475166b75480ff954a5a9bb850f09d29494 (diff)
downloadllvm-812ad83e58f94c006034b942b9482ec1331ae3a2.tar.gz
llvm-812ad83e58f94c006034b942b9482ec1331ae3a2.tar.bz2
llvm-812ad83e58f94c006034b942b9482ec1331ae3a2.tar.xz
llvm-cov: Split GCOVFile's read into GCNO and GCDA.
This splits the file-scope read() function into readGCNO() and readGCDA(). Also broke file format read into functions that first read the file type, then check the version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-cov/llvm-cov.cpp')
-rw-r--r--tools/llvm-cov/llvm-cov.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp
index 7f4d53e848..b1ea33e4bd 100644
--- a/tools/llvm-cov/llvm-cov.cpp
+++ b/tools/llvm-cov/llvm-cov.cpp
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
return 1;
}
GCOVBuffer GCNO_GB(GCNO_Buff.get());
- if (!GF.read(GCNO_GB)) {
+ if (!GF.readGCNO(GCNO_GB)) {
errs() << "Invalid .gcno File!\n";
return 1;
}
@@ -61,7 +61,7 @@ int main(int argc, char **argv) {
return 1;
}
GCOVBuffer GCDA_GB(GCDA_Buff.get());
- if (!GF.read(GCDA_GB)) {
+ if (!GF.readGCDA(GCDA_GB)) {
errs() << "Invalid .gcda File!\n";
return 1;
}