]> granicus.if.org Git - clang/commit
Use atexit when __cxa_atexit isn't available instead of adding a
authorJohn McCall <rjmccall@apple.com>
Fri, 6 Apr 2012 18:21:06 +0000 (18:21 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 6 Apr 2012 18:21:06 +0000 (18:21 +0000)
commit30fa3707c440222f65fcbb78ee8677462ea0d9ce
treebc9373e70233fd57d77f32361c627807ea3f8391
parent3f88f686e32949ffe02ccb551f482f9cf810358b
Use atexit when __cxa_atexit isn't available instead of adding a
global destructor entry.  For some reason this isn't enabled for
apple-kexts;  it'd be good to have documentation for that.

Based on a patch by Nakamura Takumi!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154191 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
test/CodeGenCXX/arm.cpp
test/CodeGenCXX/global-dtor-no-atexit.cpp
test/CodeGenCXX/global-init.cpp
test/CodeGenCXX/static-init.cpp