aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-01-18 21:19:38 +0000
committerDan Gohman <gohman@apple.com>2012-01-18 21:19:38 +0000
commit1dae3e965cc0b113b437c2c836f6e3c28a5cdb53 (patch)
treee1bccf7d6d8c1b491cd1f191ab004a42cd5116d2 /test
parent785a7a97da06ce5108d1d194b26f6cf73d3cffb0 (diff)
downloadexternal_llvm-1dae3e965cc0b113b437c2c836f6e3c28a5cdb53.zip
external_llvm-1dae3e965cc0b113b437c2c836f6e3c28a5cdb53.tar.gz
external_llvm-1dae3e965cc0b113b437c2c836f6e3c28a5cdb53.tar.bz2
Use llvm.global_ctors to locate global constructors instead
of recognizing them by name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/ObjCARC/apelim.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Transforms/ObjCARC/apelim.ll b/test/Transforms/ObjCARC/apelim.ll
index 5fefe53..8c7b5b1 100644
--- a/test/Transforms/ObjCARC/apelim.ll
+++ b/test/Transforms/ObjCARC/apelim.ll
@@ -1,6 +1,8 @@
; RUN: opt -S -objc-arc-apelim < %s | FileCheck %s
; rdar://10227311
+@llvm.global_ctors = appending global [2 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_x }, { i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_y }]
+
@x = global i32 0
declare i32 @bar() nounwind