OSDN Git Service

Register the flush function for each compile unit.
authorBill Wendling <isanbard@gmail.com>
Mon, 18 Mar 2013 23:04:39 +0000 (23:04 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 18 Mar 2013 23:04:39 +0000 (23:04 +0000)
commitd195eb6b83c2f3c70c9d1a59e26e8d6d2a3d38d3
tree086ecad3999a37d8960abbfdb9ef72e149d1b5fa
parent4a8dbb7da30bfe389ac5470cba98035451f329da
Register the flush function for each compile unit.

For each compile unit, we want to register a function that will flush that
compile unit. Otherwise, __gcov_flush() would only flush the counters within the
current compile unit, and not any outside of it.

PR15191 & <rdar://problem/13167507>

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