Merge pull request #65336 from apple/es-private

Print package-name in .private.swiftinterface only for better abstraction
This commit is contained in:
Ellie Shin
2023-04-27 20:07:12 -07:00
committed by GitHub
12 changed files with 163 additions and 49 deletions

View File

@@ -1249,8 +1249,8 @@ ModuleDecl *CompilerInstance::getMainModule() const {
Invocation.getFrontendOptions().ModuleABIName));
}
if (!Invocation.getLangOptions().PackageName.empty()) {
MainModule->setPackageName(getASTContext().getIdentifier(
Invocation.getLangOptions().PackageName));
auto pkgName = Invocation.getLangOptions().PackageName;
MainModule->setPackageName(getASTContext().getIdentifier(pkgName));
}
if (!Invocation.getFrontendOptions().ExportAsName.empty()) {
MainModule->setExportAsName(getASTContext().getIdentifier(