Serialize decls with _specialize(exported:true, target: somefunc(_:), ...) in a list for fast lookup

rdar://71430641
This commit is contained in:
Arnold Schwaighofer
2020-12-11 07:36:45 -08:00
parent f4e74f7907
commit 2b6ba2830c
13 changed files with 98 additions and 40 deletions

View File

@@ -792,6 +792,11 @@ void ModuleDecl::getTopLevelDecls(SmallVectorImpl<Decl*> &Results) const {
FORWARD(getTopLevelDecls, (Results));
}
void ModuleDecl::getExportedPrespecializations(
SmallVectorImpl<Decl *> &Results) const {
FORWARD(getExportedPrespecializations, (Results));
}
void ModuleDecl::getTopLevelDeclsWhereAttributesMatch(
SmallVectorImpl<Decl*> &Results,
llvm::function_ref<bool(DeclAttributes)> matchAttributes) const {