Home | History | Annotate | Download | only in CodeGenObjC
      1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -emit-llvm -o %t %s
      2 // RUN: FileCheck --check-prefix CHECK-FRAGILE < %t %s
      3 
      4 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
      5 // RUN: FileCheck --check-prefix CHECK-NONFRAGILE < %t %s
      6 
      7 // CHECK-FRAGILE:      !llvm.module.flags = !{!0, !1, !2, !3}
      8 // CHECK-FRAGILE:      !0 = metadata !{i32 1, metadata !"Objective-C Version", i32 1}
      9 // CHECK-FRAGILE-NEXT: !1 = metadata !{i32 1, metadata !"Objective-C Image Info Version", i32 0}
     10 // CHECK-FRAGILE-NEXT: !2 = metadata !{i32 1, metadata !"Objective-C Image Info Section", metadata !"__OBJC, __image_info,regular"}
     11 // CHECK-FRAGILE-NEXT: !3 = metadata !{i32 4, metadata !"Objective-C Garbage Collection", i32 0}
     12 
     13 // CHECK-NONFRAGILE:      !llvm.module.flags = !{!0, !1, !2, !3}
     14 // CHECK-NONFRAGILE:      !0 = metadata !{i32 1, metadata !"Objective-C Version", i32 2}
     15 // CHECK-NONFRAGILE-NEXT: !1 = metadata !{i32 1, metadata !"Objective-C Image Info Version", i32 0}
     16 // CHECK-NONFRAGILE-NEXT: !2 = metadata !{i32 1, metadata !"Objective-C Image Info Section", metadata !"__DATA, __objc_imageinfo, regular, no_dead_strip"}
     17 // CHECK-NONFRAGILE-NEXT: !3 = metadata !{i32 4, metadata !"Objective-C Garbage Collection", i32 0}
     18