mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Introduce @specialized attribute
Implements SE-0460 -- the non-underscored version of @specialized. It allows to specify "internal" (not abi affecting) specializations. rdar://150033316
This commit is contained in:
@@ -3109,7 +3109,7 @@ bool SourceFile::isImportedAsSPI(const ValueDecl *targetDecl) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ModuleDecl::isImportedAsSPI(const SpecializeAttr *attr,
|
||||
bool ModuleDecl::isImportedAsSPI(const AbstractSpecializeAttr *attr,
|
||||
const ValueDecl *targetDecl) const {
|
||||
auto declSPIGroups = attr->getSPIGroups();
|
||||
if (shouldImplicitImportAsSPI(declSPIGroups))
|
||||
|
||||
Reference in New Issue
Block a user