mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Support module selectors for cross-import overlays
This commit is contained in:
@@ -2564,6 +2564,12 @@ bool ModuleDecl::getRequiredBystandersIfCrossImportOverlay(
|
||||
return false;
|
||||
}
|
||||
|
||||
Identifier ModuleDecl::getNameForModuleSelector() {
|
||||
if (auto declaring = getDeclaringModuleIfCrossImportOverlay())
|
||||
return declaring->getName();
|
||||
return this->getName();
|
||||
}
|
||||
|
||||
bool ModuleDecl::isClangHeaderImportModule() const {
|
||||
auto importer = getASTContext().getClangModuleLoader();
|
||||
if (!importer)
|
||||
|
||||
Reference in New Issue
Block a user