summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbec4e90769db92fcd3f04e3df83d2033a1e43523 (patch)
tree5b4ac94c9c1b62507e3418afa99d8a5d0bf9db28 /llvm/tools/llvm-cov/llvm-cov.cpp
parentf79bd5cb9db30abc7a153d14297b4c8bf46f6f86 (diff)
downloadbcm5719-llvm-bec4e90769db92fcd3f04e3df83d2033a1e43523.tar.gz
bcm5719-llvm-bec4e90769db92fcd3f04e3df83d2033a1e43523.zip
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. llvm-svn: 196353
Diffstat (limited to 'llvm/tools/llvm-cov/llvm-cov.cpp')
-rw-r--r--llvm/tools/llvm-cov/llvm-cov.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-cov/llvm-cov.cpp b/llvm/tools/llvm-cov/llvm-cov.cpp
index 7f4d53e848b..b1ea33e4bdc 100644
--- a/llvm/tools/llvm-cov/llvm-cov.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud