Introduce the __llvm_gcov_flush function.
authorBill Wendling <isanbard@gmail.com>
Thu, 13 Sep 2012 00:09:55 +0000 (00:09 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 13 Sep 2012 00:09:55 +0000 (00:09 +0000)
commit253353c9cf1ff16d9c30a89c2fb96160ac5a9d65
tree27fc1f9465b2bbc173491c240712f17b4bed5a3a
parente521278f00cf5f4ea0cc4aac126df30924d3e705
Introduce the __llvm_gcov_flush function.

This function writes out the current values of the counters and then resets
them. This can be used similarly to the __gcov_flush function to sync the
counters when need be. For instance, in a situation where the application
doesn't exit.
<rdar://problem/12185886>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163757 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/GCOVProfiling.cpp