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/lib/CodeGen/CGObjCMac.cpp | |
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/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 7d760bde997..ad141d61914 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -6262,7 +6262,8 @@ CGObjCNonFragileABIMac::BuildClassObject(const ObjCInterfaceDecl *CI, bool CGObjCNonFragileABIMac::ImplementationIsNonLazy( const ObjCImplDecl *OD) const { return OD->getClassMethod(GetNullarySelector("load")) != nullptr || - OD->getClassInterface()->hasAttr<ObjCNonLazyClassAttr>(); + OD->getClassInterface()->hasAttr<ObjCNonLazyClassAttr>() || + OD->hasAttr<ObjCNonLazyClassAttr>(); } void CGObjCNonFragileABIMac::GetClassSizeInfo(const ObjCImplementationDecl *OID, |