mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #31199 from brentdax/pathfinder
Fix layering of cross-import and clang overlays
This commit is contained in:
@@ -1426,6 +1426,22 @@ SourceFile::getImportedModules(SmallVectorImpl<ModuleDecl::ImportedModule> &modu
|
||||
}
|
||||
}
|
||||
|
||||
void SourceFile::dumpSeparatelyImportedOverlays() const {
|
||||
for (auto &pair : separatelyImportedOverlays) {
|
||||
auto &underlying = std::get<0>(pair);
|
||||
auto &overlays = std::get<1>(pair);
|
||||
|
||||
llvm::errs() << (void*)underlying << " ";
|
||||
underlying->dump(llvm::errs());
|
||||
|
||||
for (auto overlay : overlays) {
|
||||
llvm::errs() << "- ";
|
||||
llvm::errs() << (void*)overlay << " ";
|
||||
overlay->dump(llvm::errs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ModuleDecl::getImportedModulesForLookup(
|
||||
SmallVectorImpl<ImportedModule> &modules) const {
|
||||
FORWARD(getImportedModulesForLookup, (modules));
|
||||
|
||||
Reference in New Issue
Block a user