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)
commitc3cab816bb6f372ca53ce24e215267c246e40e0f
treef9abb6eba53f920c02b0956afa8c382651896702
parenta0e4da0af6cf0387be7416672a98e613edd983be
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>

llvm-svn: 177340
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp