Add some GCOV functions that register all of the __llvm_gcov_flush() functions.
authorBill Wendling <isanbard@gmail.com>
Mon, 18 Mar 2013 22:59:47 +0000 (22:59 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 18 Mar 2013 22:59:47 +0000 (22:59 +0000)
commit2428f167f72ce4f7734c6f85f70e94283cfba1c5
treeb36eacaa93640088206df3cac6a4c47b8fef94a5
parentc00f43a33f7d511b619d676a9931d1b50e07414d
Add some GCOV functions that register all of the __llvm_gcov_flush() functions.

The __llvm_gcov_flush() functions only work for the local compile unit. However,
when __gcov_flush() is called, the user expects all of the counters to be
flushed, not just the ones in the current compile unit.

This adds some library functions that register the flush functions. It also
defined __gcov_flush() so that loops through that list and calls the functions.

PR15191 & <rdar://problem/13167507>

llvm-svn: 177337
compiler-rt/lib/profile/GCDAProfiling.c