Sink private-file import support down to SerializedASTFile

Implementing it in LoadedFile is nice in theory, but causes a leak in
practice because that type is ASTContext-allocated and usually never
destroyed.

https://bugs.swift.org/browse/SR-11366
This commit is contained in:
Jordan Rose
2019-08-23 17:25:44 -07:00
parent e479e1398d
commit 764e2b8ce6
5 changed files with 15 additions and 22 deletions

View File

@@ -274,6 +274,9 @@ public:
DeclName name, NLKind lookupKind,
SmallVectorImpl<ValueDecl*> &results) const override;
virtual StringRef
getFilenameForPrivateDecl(const ValueDecl *decl) const override;
virtual TypeDecl *lookupLocalType(StringRef MangledName) const override;
virtual OpaqueTypeDecl *