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

@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
/// Don't worry about adhering to the 80-column limit for this line.
const uint16_t SWIFTMODULE_VERSION_MINOR = 739; // CxxStdlib
const uint16_t SWIFTMODULE_VERSION_MINOR = 740; // export-as
/// A standard hash seed used for all string hashes in a serialized module.
///
@@ -861,6 +861,7 @@ namespace options_block {
MODULE_ABI_NAME,
IS_CONCURRENCY_CHECKED,
MODULE_PACKAGE_NAME,
MODULE_EXPORT_AS_NAME,
};
using SDKPathLayout = BCRecordLayout<
@@ -924,6 +925,11 @@ namespace options_block {
MODULE_PACKAGE_NAME,
BCBlob
>;
using ModuleExportAsNameLayout = BCRecordLayout<
MODULE_EXPORT_AS_NAME,
BCBlob
>;
}
/// The record types within the input block.