mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Module aliasing: modify ImportPath getters to return real module names
Resolves rdar://83632921, rdar://83633109
This commit is contained in:
@@ -65,8 +65,7 @@ bool swift::emitImportedModules(ModuleDecl *mainModule,
|
||||
auto ID = dyn_cast<ImportDecl>(D);
|
||||
if (!ID)
|
||||
continue;
|
||||
|
||||
auto modulePath = ID->getModulePath();
|
||||
auto modulePath = ID->getModulePath(/*withRealModuleName=*/true);
|
||||
// only the top-level name is needed (i.e. A in A.B.C)
|
||||
Modules.insert(modulePath[0].Item.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user