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

@@ -1267,6 +1267,10 @@ SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const {
File.getTopLevelDecls(results);
}
void SerializedASTFile::getExportedPrespecializations(
SmallVectorImpl<Decl *> &results) const {
File.getExportedPrespecializations(results);
}
void SerializedASTFile::getTopLevelDeclsWhereAttributesMatch(
SmallVectorImpl<Decl*> &results,
llvm::function_ref<bool(DeclAttributes)> matchAttributes) const {