summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/constructor.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-09-02 13:54:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-09-02 13:54:53 +0000
commit4dd3677b5f9eaffc9f6087d989a3a73ebb395013 (patch)
treeb66b2ccadc8a4b1f78ea663aca4c2d79a82feae8 /llvm/test/CodeGen/X86/constructor.ll
parent8bbb17dcc38be6436049173b6ee0bd927507e2fe (diff)
downloadbcm5719-llvm-4dd3677b5f9eaffc9f6087d989a3a73ebb395013.tar.gz
bcm5719-llvm-4dd3677b5f9eaffc9f6087d989a3a73ebb395013.zip
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. llvm-svn: 216905
Diffstat (limited to 'llvm/test/CodeGen/X86/constructor.ll')
-rw-r--r--llvm/test/CodeGen/X86/constructor.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/constructor.ll b/llvm/test/CodeGen/X86/constructor.ll
index b57889643e0..23860be4a3b 100644
--- a/llvm/test/CodeGen/X86/constructor.ll
+++ b/llvm/test/CodeGen/X86/constructor.ll
@@ -1,5 +1,5 @@
-; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck --check-prefix=CTOR %s
-; RUN: llc -mtriple x86_64-pc-linux -use-init-array < %s | FileCheck --check-prefix=INIT-ARRAY %s
+; RUN: llc -mtriple x86_64-pc-linux -use-ctors < %s | FileCheck --check-prefix=CTOR %s
+; RUN: llc -mtriple x86_64-pc-linux < %s | FileCheck --check-prefix=INIT-ARRAY %s
@llvm.global_ctors = appending global [2 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @f }, { i32, void ()* } { i32 15, void ()* @g }]
define void @f() {
OpenPOWER on IntegriCloud