| commit | e85f34969e93b704c3c63a2f7e2e2467e2a8cb38 | [log] [tgz] |
|---|---|---|
| author | Bill Wendling <isanbard@gmail.com> | Fri Jun 01 23:14:32 2012 +0000 |
| committer | Bill Wendling <isanbard@gmail.com> | Fri Jun 01 23:14:32 2012 +0000 |
| tree | 1330376106e6669a81bd5a98d9b7374704aea1fc | |
| parent | 5d6e7c3351708a2131d65a52a3021a78c4eb85b6 [diff] |
Register the gcov "writeout" at init time. Don't list this as a d'tor. Instead, inject some code in that will run via the "__mod_init_func" method that registers the gcov "writeout" function to execute at exit time. The problem is that the "__mod_term_func" method of specifying d'tors is deprecated on Darwin. And it can lead to some ambiguities when dealing with multiple libraries. <rdar://problem/11110106> llvm-svn: 157852