Add a test for generating Objective-C metadata from module flags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-02-15 23:43:37 +00:00
parent a230262791
commit b183f5283a

View File

@ -0,0 +1,13 @@
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
; CHECK: .section __DATA,__objc_imageinfo,regular,no_dead_strip
; CHECK-NEXT: L_OBJC_IMAGE_INFO:
; CHECK-NEXT: .long 0
; CHECK-NEXT: .long 2
!llvm.module.flags = !{!0, !1, !2, !3}
!0 = metadata !{i32 1, metadata !"Objective-C Version", i32 2}
!1 = metadata !{i32 1, metadata !"Objective-C Image Info Version", i32 0}
!2 = metadata !{i32 1, metadata !"Objective-C Image Info Section", metadata !"__DATA, __objc_imageinfo, regular, no_dead_strip"}
!3 = metadata !{i32 1, metadata !"Objective-C Garbage Collection", i32 2}