Replace -use-init-array with -use-ctors.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 2 Sep 2014 13:54:53 +0000 (13:54 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 2 Sep 2014 13:54:53 +0000 (13:54 +0000)
commit1e556a80ffbc7c4ecb99848e14995119337c9362
tree0b61cfedc73bada80297c8d4f44031c83fa4b17e
parentedc658d68649cf84c8b1f4bddf8e32564568746b
Replace -use-init-array with -use-ctors.

We have been using .init-array for most systems for quiet some time,
but tools like llc are still defaulting to .ctors because the old
option was never changed.

This patch makes llc default to .init-array and changes the option to
be -use-ctors.

Clang is not affected by this. It has its own fancier logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216905 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/CommandFlags.h
test/CodeGen/AArch64/init-array.ll
test/CodeGen/Mips/init-array.ll
test/CodeGen/X86/2011-08-29-InitOrder.ll
test/CodeGen/X86/constructor.ll