@@ -399,12 +399,12 @@ static std::pair<ArrayRef<Decl*>, ArrayRef<Decl*>>
399399getDeclsFromCrossImportOverlay (ModuleDecl *Overlay, ModuleDecl *Declaring,
400400 SmallVectorImpl<Decl *> &Decls,
401401 AccessLevel AccessFilter) {
402- Overlay-> getDisplayDecls ( Decls);
402+ swift::getTopLevelDeclsForDisplay (Overlay, Decls);
403403
404404 // Collect the imports of the underlying module so we can filter them out.
405405 SmallPtrSet<ModuleDecl *, 8 > PrevImported;
406406 SmallVector<Decl*, 1 > DeclaringDecls;
407- Declaring-> getDisplayDecls ( DeclaringDecls);
407+ swift::getTopLevelDeclsForDisplay (Declaring, DeclaringDecls);
408408 for (auto *D: DeclaringDecls) {
409409 if (auto *ID = dyn_cast<ImportDecl>(D))
410410 PrevImported.insert (ID->getModule ());
@@ -548,7 +548,7 @@ void swift::ide::printModuleInterface(
548548 adjustPrintOptions (AdjustedOptions);
549549
550550 SmallVector<Decl *, 1 > Decls;
551- TopLevelMod-> getDisplayDecls ( Decls);
551+ swift::getTopLevelDeclsForDisplay (TopLevelMod, Decls);
552552
553553 SmallVector<ImportDecl *, 1 > ImportDecls;
554554 llvm::DenseSet<const clang::Module *> ClangModulesForImports;
0 commit comments