Introduce llvm-cov.
authorDevang Patel <dpatel@apple.com>
Wed, 28 Sep 2011 18:50:00 +0000 (18:50 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 28 Sep 2011 18:50:00 +0000 (18:50 +0000)
commitd02c42bb855484cad379a345dee04c7c6463f1cb
tree42d640dfb01b5da7ab34eceb0bbe83eb5a68321f
parentcfab2be39188b9fdd695bf4ae6d6817c55190b6c
Introduce llvm-cov.

Add llvm-cov skeleton. It has initial support to read coverage info generated by GCOVProfiling.cpp.
Today, you can do
prompt> clang a.c -ftest-coverage -fprofile-arcs -o a
prompt> ./a
prompt> llvm-cov -gcno a.gcno -gcda a.gcda
a.c
 : #include "a.h"
 :
 : int main() {
 : int i = 0;
 : if (i) {
1: int j = 0;
1: j = 1;
1: } else {
 : int k = 1;
 : k = 2;
 : }
1: return 0;
 : }
 :
 :

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140712 91177308-0d34-0410-b5e6-96231b3b80d8
tools/Makefile
tools/llvm-cov/CMakeLists.txt [new file with mode: 0644]
tools/llvm-cov/GCOVReader.cpp [new file with mode: 0644]
tools/llvm-cov/GCOVReader.h [new file with mode: 0644]
tools/llvm-cov/Makefile [new file with mode: 0644]
tools/llvm-cov/llvm-cov.cpp [new file with mode: 0644]