diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2019-04-11 17:55:34 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2019-04-11 17:55:34 +0000 |
commit | 1138d8c8924bcf479a566133f64eb700807e6774 (patch) | |
tree | 5ad73dbe3a6aabe418496bc759e4d11ce2ea562b /clang/test/CodeGenObjC/non-lazy-classes.m | |
parent | c5a0583400b71f81faf9dedfaab094720c2ef823 (diff) | |
download | bcm5719-llvm-1138d8c8924bcf479a566133f64eb700807e6774.tar.gz bcm5719-llvm-1138d8c8924bcf479a566133f64eb700807e6774.zip |
Support objc_nonlazy_class attribute on Objective-C implementations
Fixes rdar://49523079
Differential revision: https://reviews.llvm.org/D60544
llvm-svn: 358201
Diffstat (limited to 'clang/test/CodeGenObjC/non-lazy-classes.m')
-rw-r--r-- | clang/test/CodeGenObjC/non-lazy-classes.m | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/clang/test/CodeGenObjC/non-lazy-classes.m b/clang/test/CodeGenObjC/non-lazy-classes.m index aeb2a0dd9cb..dbfc54d4085 100644 --- a/clang/test/CodeGenObjC/non-lazy-classes.m +++ b/clang/test/CodeGenObjC/non-lazy-classes.m @@ -1,7 +1,7 @@ -// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-objc-root-class -emit-llvm -o - %s | \ -// RUN: FileCheck %s -// CHECK: @"OBJC_LABEL_NONLAZY_CLASS_$" = private global [2 x {{.*}}]{{.*}}@"OBJC_CLASS_$_A"{{.*}},{{.*}}@"OBJC_CLASS_$_D"{{.*}} section "__DATA,__objc_nlclslist,regular,no_dead_strip", align 8 -// CHECK: @"OBJC_LABEL_NONLAZY_CATEGORY_$" = private global [1 x {{.*}}] {{.*}}@"\01l_OBJC_$_CATEGORY_A_$_Cat"{{.*}}, section "__DATA,__objc_nlcatlist,regular,no_dead_strip", align 8 +// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-objc-root-class -emit-llvm -o - %s | FileCheck %s + +// CHECK: @"OBJC_LABEL_NONLAZY_CLASS_$" = private global [3 x {{.*}}]{{.*}}@"OBJC_CLASS_$_A"{{.*}},{{.*}}@"OBJC_CLASS_$_D"{{.*}},{{.*}}"OBJC_CLASS_$_E"{{.*}} section "__DATA,__objc_nlclslist,regular,no_dead_strip", align 8 +// CHECK: @"OBJC_LABEL_NONLAZY_CATEGORY_$" = private global [2 x {{.*}}] {{.*}}@"\01l_OBJC_$_CATEGORY_A_$_Cat"{{.*}},{{.*}}@"\01l_OBJC_$_CATEGORY_E_$_MyCat"{{.*}}, section "__DATA,__objc_nlcatlist,regular,no_dead_strip", align 8 @interface A @end @implementation A @@ -35,3 +35,11 @@ __attribute__((objc_nonlazy_class)) @interface D @end @implementation D @end + +@interface E @end + +__attribute__((objc_nonlazy_class)) +@implementation E @end + +__attribute__((objc_nonlazy_class)) +@implementation E (MyCat) @end |