Merge branch 'main' into lazy-immediate

This commit is contained in:
zachary0kent
2023-08-16 19:45:27 -07:00
committed by GitHub
185 changed files with 3390 additions and 4451 deletions

View File

@@ -3839,15 +3839,6 @@ void *SourceFile::getExportedSourceFile() const {
return evaluateOrDefault(eval, ExportedSourceFileRequest{this}, nullptr);
}
void SourceFile::addDeclWithRuntimeDiscoverableAttrs(ValueDecl *decl) {
assert(!decl->getRuntimeDiscoverableAttrs().empty());
DeclsWithRuntimeDiscoverableAttrs.insert(decl);
}
ArrayRef<ValueDecl *> SourceFile::getDeclsWithRuntimeDiscoverableAttrs() const {
return DeclsWithRuntimeDiscoverableAttrs.getArrayRef();
}
bool FileUnit::walk(ASTWalker &walker) {
SmallVector<Decl *, 64> Decls;
getTopLevelDecls(Decls);