Properly emit ctors / dtors with priorities into desired sections
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 25 Jan 2012 22:24:19 +0000 (22:24 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 25 Jan 2012 22:24:19 +0000 (22:24 +0000)
commit4a99f59aef358fb93eac180e49f6dcef03822046
treef0f951466aaec123a732b8af2ce20960d12f88b6
parent58a3685916e2badd7fdec557641b056c1540c0c3
Properly emit ctors / dtors with priorities into desired sections
and let linker handle the rest.

This finally fixes PR5329

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148990 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
include/llvm/MC/MCObjectFileInfo.h
include/llvm/Target/TargetLoweringObjectFile.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/MC/MCObjectFileInfo.cpp
lib/Target/ARM/ARMTargetObjectFile.cpp
lib/Target/ARM/ARMTargetObjectFile.h
test/CodeGen/ARM/ctor_order.ll
test/CodeGen/X86/2011-08-29-InitOrder.ll