Emit the TLS initialization function pointers into the correct section.
authorBill Wendling <isanbard@gmail.com>
Mon, 29 Apr 2013 22:25:40 +0000 (22:25 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 29 Apr 2013 22:25:40 +0000 (22:25 +0000)
commitfa2eac54e690928592a2bd6c1f8ee0f9b1923d5e
treeeacd277dab66dffc790872b261e751447502a89c
parent59a0e79631ed851d98cf9c2ba6fa5f9aafdfdc93
Emit the TLS initialization function pointers into the correct section.

The `llvm.tls_init_funcs' (created by the front-end) holds pointers to the TLS
initialization functions. These need to be placed into the correct section so
that they are run before `main()'.

<rdar://problem/13733006>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180737 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp