[cfe-commits] patch: add a cc1 flag -coverage-dir=...

Nick Lewycky nlewycky at google.com
Tue May 3 21:06:16 PDT 2011


The attached patch determines what path prefix gcc would use for gcov
coverage data files and puts is in a cc1 flag -coverage-dir which is
threaded into codegen who finally plops it in a metadata node.

The point of putting it in metadata is to allow us to produce a .bc
file and still get the same behaviour as when we go straight to .o
file, and this also will work when we merge .bc files and then run the
-insert-gcov-profiling pass.

It's a small patch. Please review!

Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-coverage-dir.patch
Type: text/x-patch
Size: 4507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110503/26adaa3a/attachment.bin>


More information about the cfe-commits mailing list