summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/attr-objc-non-lazy.m
Commit message (Collapse)AuthorAgeFilesLines
* Support objc_nonlazy_class attribute on Objective-C implementationsErik Pilkington2019-04-111-1/+5
| | | | | | | | Fixes rdar://49523079 Differential revision: https://reviews.llvm.org/D60544 llvm-svn: 358201
* Add support for attributes on @implementations in Objective-CErik Pilkington2019-04-111-1/+2
| | | | | | | | | We want to make objc_nonlazy_class apply to implementations, but ran into this. There doesn't seem to be any reason that this isn't supported. Differential revision: https://reviews.llvm.org/D60542 llvm-svn: 358200
* [OBJC] Add attribute to mark Objective C class as non-lazyJoe Daniels2019-02-041-0/+34
A non-lazy class will be initialized eagerly when the Objective-C runtime is loaded. This is required for certain system classes which have instances allocated in non-standard ways, such as the classes for blocks and constant strings. Adding this attribute is essentially equivalent to providing a trivial +load method but avoids the (fairly small) load-time overheads associated with defining and calling such a method. Differential Revision: https://reviews.llvm.org/D56555 llvm-svn: 353116
OpenPOWER on IntegriCloud