mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
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:
parent
a230262791
commit
b183f5283a
13
test/CodeGen/X86/objc-gc-module-flags.ll
Normal file
13
test/CodeGen/X86/objc-gc-module-flags.ll
Normal 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}
|
Loading…
Reference in New Issue
Block a user