mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Merge two category name accessors
This commit is contained in:
@@ -5860,7 +5860,7 @@ void IRGenModule::emitNestedTypeDecls(DeclRange members) {
|
||||
|
||||
static bool shouldEmitCategory(IRGenModule &IGM, ExtensionDecl *ext) {
|
||||
if (ext->isObjCImplementation()) {
|
||||
assert(ext->getCategoryNameForObjCImplementation() != Identifier());
|
||||
assert(!ext->getObjCCategoryName().empty());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -5904,8 +5904,7 @@ void IRGenModule::emitExtension(ExtensionDecl *ext) {
|
||||
if (!origClass)
|
||||
return;
|
||||
|
||||
if (ext->isObjCImplementation()
|
||||
&& ext->getCategoryNameForObjCImplementation() == Identifier()) {
|
||||
if (ext->isObjCImplementation() && ext->getObjCCategoryName().empty()) {
|
||||
// This is the @_objcImplementation for the class--generate its class
|
||||
// metadata.
|
||||
emitClassDecl(origClass);
|
||||
|
||||
Reference in New Issue
Block a user