[AST] Hack SourceFile::lookupLocalType() to look through local types.

This is only currently exercised by swift-remoteast-test, so do the
minimum to ensure that we’re getting cached mangled names, but don’t
fret over the linear-time search.
This commit is contained in:
Doug Gregor
2019-01-25 17:08:34 -08:00
parent 2be98a232e
commit 9bf404380f
2 changed files with 19 additions and 0 deletions

View File

@@ -1052,6 +1052,8 @@ public:
virtual void
getPrecedenceGroups(SmallVectorImpl<PrecedenceGroupDecl*> &results) const override;
virtual TypeDecl *lookupLocalType(llvm::StringRef MangledName) const override;
virtual void
getLocalTypeDecls(SmallVectorImpl<TypeDecl*> &results) const override;