mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
381d08b36d
This ensures that we can emit the ObjC Image Info structure on COFF and ELF as well. The frontend already would attempt to emit this information but would get dropped when generating assembly or an object file. llvm-svn: 304736
15 lines
447 B
LLVM
15 lines
447 B
LLVM
; RUN: llc -mtriple x86_64-unknown-linux-gnu -filetype asm -o - %s | FileCheck %s
|
|
|
|
!llvm.module.flags = !{!0, !1, !2, !3}
|
|
|
|
!0 = !{i32 1, !"Objective-C Version", i32 2}
|
|
!1 = !{i32 1, !"Objective-C Image Info Version", i32 0}
|
|
!2 = !{i32 1, !"Objective-C Image Info Section", !"objc_imageinfo"}
|
|
!3 = !{i32 1, !"Objective-C Garbage Collection", i32 2}
|
|
|
|
; CHECK: .section objc_imageinfo
|
|
; CHECK: OBJC_IMAGE_INFO:
|
|
; CHECK: .long 0
|
|
; CHECK: .long 2
|
|
|