commit | 20bb175cb8ae5844034828db094fb948c0e3454a | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Tue May 01 06:13:13 2012 +0000 |
committer | John McCall <rjmccall@apple.com> | Tue May 01 06:13:13 2012 +0000 |
tree | 47ddb10b5e232580cb19e4092b10d2b45cc46b51 | |
parent | 5729672524865f212cbadb51170dca0694e79a71 [diff] |
Abstract the emission of global destructors into ABI-specific code and only consider using __cxa_atexit in the Itanium logic. The default logic is to use atexit(). Emit "guarded" initializers in Microsoft mode unconditionally. This is definitely not correct, but it's closer to correct than just not emitting the initializer. Based on a patch by Timur Iskhodzhanov! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155894 91177308-0d34-0410-b5e6-96231b3b80d8