[LLVMdev] LLVM Coverage GCDA Flush API

Joshua Cranmer pidgeot18 at gmail.com
Wed Feb 6 10:00:03 PST 2013


On 2/6/2013 11:43 AM, John Harrison wrote:
> The way `-ftest-coverage -fprofile-arcs` works at the moment it only 
> flushes via `atexit()`. This patch allows you to flush the coverage at 
> any point by calling `__llvm_gcov_flush` the same way `__gcov_flush` 
> works for gcc.
>
> If there is another way of doing this, I might of missed it but I was 
> looking for `__gcov_flush` and I did not find the equivalent in llvm 
> at the moment.

__gcov_flush is added by the GCOVProfiling.cpp pass by 
GCOVProfiler::insertFlush.

-- 
Joshua Cranmer
News submodule owner
DXR coauthor




More information about the llvm-dev mailing list