Merge pull request #77216 from xedin/add-swift-compiler-version

[Frontend/AST] Add `-interface-compiler-version` option to frontend/modules
This commit is contained in:
Pavel Yaskevich
2024-10-28 21:06:47 -07:00
committed by GitHub
20 changed files with 151 additions and 8 deletions

View File

@@ -215,6 +215,9 @@ static bool readOptionsBlock(llvm::BitstreamCursor &cursor,
case options_block::PUBLIC_MODULE_NAME:
extendedInfo.setPublicModuleName(blobData);
break;
case options_block::SWIFT_INTERFACE_COMPILER_VERSION:
extendedInfo.setSwiftInterfaceCompilerVersion(blobData);
break;
default:
// Unknown options record, possibly for use by a future version of the
// module format.
@@ -1497,6 +1500,8 @@ ModuleFileSharedCore::ModuleFileSharedCore(
ModulePackageName = extInfo.getModulePackageName();
ModuleExportAsName = extInfo.getExportAsName();
PublicModuleName = extInfo.getPublicModuleName();
SwiftInterfaceCompilerVersion =
extInfo.getSwiftInterfaceCompilerVersion();
hasValidControlBlock = true;
break;