1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
2 ; <rdar://problem/10564621>
5 %struct.NSConstantString = type { ptr, i32, ptr, i32 }
7 ; Make sure that the string ends up the correct section.
9 ; CHECK: .section __TEXT,__cstring
10 ; CHECK-NEXT: L_.str3:
12 ; CHECK: .section __DATA,__cfstring
13 ; CHECK-NEXT: .p2align 4
14 ; CHECK-NEXT: L__unnamed_cfstring_4:
15 ; CHECK-NEXT: .quad ___CFConstantStringClassReference
16 ; CHECK-NEXT: .long 1992
17 ; CHECK-NEXT: .space 4
18 ; CHECK-NEXT: .quad L_.str3
20 ; CHECK-NEXT: .space 4
22 @isLogVisible = global i8 0, align 1
23 @__CFConstantStringClassReference = external global [0 x i32]
24 @.str3 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
25 @_unnamed_cfstring_4 = private constant %struct.NSConstantString { ptr @__CFConstantStringClassReference, i32 1992, ptr @.str3, i32 0 }, section "__DATA,__cfstring"
26 @null.array = weak_odr constant [1 x i8] zeroinitializer, align 1
28 define linkonce_odr void @bar() nounwind ssp align 2 {
30 %stack = alloca ptr, align 4
31 %call = call ptr @objc_msgSend(ptr null, ptr null, ptr @_unnamed_cfstring_4)
32 store ptr @null.array, ptr %stack, align 4
36 declare ptr @objc_msgSend(ptr, ptr, ...) nonlazybind