[PATCH] Support for reading program counts in llvm-cov
Bob Wilson
bob.wilson at apple.com
Thu Oct 24 16:47:23 PDT 2013
On Oct 23, 2013, at 7:58 PM, Yuchen Wu <yuchenericwu at hotmail.com> wrote:
> I forgot to actually attach the patch. My apologies!
>
> ----------------------------------------
>> From: yuchenericwu at hotmail.com
>> To: llvm-commits at cs.uiuc.edu
>> Subject: [PATCH] Support for reading program counts in llvm-cov
>> Date: Wed, 23 Oct 2013 21:58:09 -0400
>>
>> Support for reading program counts in llvm-cov.
>>
>> llvm-cov will now be able to read program counts from the GCDA file and
>> output it in the same format as gcov. The program summary tag was
>> identified from gcov-io.h as "\0\0\0\a3".
>>
>> There is currently a bug in GCOVProfiling.cpp which does not generate the
>> run- or program-counting IR, so this change was tested manually by
>> modifying the GCDA file and comparing the gcov and llvm-cov outputs.
There's a trailing blank at the end of the first comment line. Please commit with that fixed.
I'd really like to get at least one test case for llvm-cov before you go too much further with these fixes. Can you try to set that up soon? I think we can have a test with a .gcno and .gcda file checked in along with the source file and then run llvm-cov on those files.
More information about the llvm-commits
mailing list