Why does __gcov_flush only flush the current compilation unit? For gcc __gcov_flush flushes all of the loaded files. <div><br></div><div>Is there a way to have __gcov_flush flush everything? <br><div><div><div><br><div><div>

--<div>John Harrison</div></div>
<br><br><div class="gmail_quote">On Wed, Feb 6, 2013 at 10:24 AM, John Harrison <span dir="ltr"><<a href="mailto:ash.gti@gmail.com" target="_blank">ash.gti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Ah, my mistake. So this already works. I guess that bug is out of date, since this feature works already. <div><br clear="all"><div>--<div>John Harrison</div></div><div><div class="h5">
<br><br><div class="gmail_quote">On Wed, Feb 6, 2013 at 10:00 AM, Joshua Cranmer <span dir="ltr"><<a href="mailto:pidgeot18@gmail.com" target="_blank">pidgeot18@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>On 2/6/2013 11:43 AM, John Harrison wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>



<br>
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.<br>
</blockquote>
<br></div>
__gcov_flush is added by the GCOVProfiling.cpp pass by GCOVProfiler::insertFlush.<span><font color="#888888"><br>
<br>
-- <br>
Joshua Cranmer<br>
News submodule owner<br>
DXR coauthor</font></span><div><div><br>
<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div></div></div>