Merge pull request #63248 from xymus/swift-export-as

[ModuleInterface] Intro the flag `-export-as` for Swift modules
This commit is contained in:
Alexis Laferrière
2023-01-27 21:23:35 -08:00
committed by GitHub
17 changed files with 165 additions and 3 deletions

View File

@@ -1073,6 +1073,11 @@ void Serializer::writeHeader(const SerializationOptions &options) {
PackageName.emit(ScratchRecord, M->getPackageName().str());
}
if (!M->getExportAsName().empty()) {
options_block::ModuleExportAsNameLayout ExportAs(Out);
ExportAs.emit(ScratchRecord, M->getExportAsName().str());
}
if (M->isConcurrencyChecked()) {
options_block::IsConcurrencyCheckedLayout IsConcurrencyChecked(Out);
IsConcurrencyChecked.emit(ScratchRecord);