[cfe-commits] patch: add gcov-compatible coverage support to clang

İsmail Dönmez ismail at namtrac.org
Sat Dec 31 05:42:21 PST 2011


On Thu, Apr 21, 2011 at 4:06 AM, Nick Lewycky <nlewycky at google.com> wrote:

> This patch adds the -ftest-coverage flag, and wires it--along with
> -coverage and -fprofile-arcs--up to llvm's recently added support for
> emission of gcov data files. Please review!

I noticed that clang doesn't honor -fgenerate-profile flag, would it make
sense to hook it up to do -fprofile-arcs ? According to gcc,
-fprofile-generate enables 3 options;

 -fprofile-arcs (clang has this already)


If combined with -fprofile-arcs, it adds code so that some data about
values of expressions in the program is gathered.


If combined with -fprofile-arcs, it instructs the compiler to add a code to
gather information about values of expressions.

I am not sure where does last 2 options map in llvm world.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111231/74942120/attachment.html>

More information about the cfe-commits mailing list