]> granicus.if.org Git - clang/commit
Emit the TLS intialization functions into a list.
authorBill Wendling <isanbard@gmail.com>
Mon, 29 Apr 2013 22:27:16 +0000 (22:27 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 29 Apr 2013 22:27:16 +0000 (22:27 +0000)
commit7c6b7ba5f5410d4b552ee53c60d0690522c99959
treec45ba694fd5902138b6f7b76d9665327513b6373
parentd237d2e6b85a74f31c986dc585fa6c39733b74a2
Emit the TLS intialization functions into a list.

Add the TLS initialization functions to a list of initialization functions. The
back-end takes this list and places the function pointers into the correct
section. This way they're called before `main().'

<rdar://problem/13733006>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180739 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGenCXX/tls-init-funcs.cpp [new file with mode: 0644]