mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into manual-main-merge
Conflicts:
- `lib/Driver/ToolChains.cpp` conflicting with the `addAllArgs` rename
for multiple options
This commit is contained in:
@@ -1126,6 +1126,13 @@ void Serializer::writeHeader() {
|
||||
ExportAs.emit(ScratchRecord, M->getExportAsName().str());
|
||||
}
|
||||
|
||||
Identifier publicModuleName =
|
||||
M->getPublicModuleName(/*onlyIfImported=*/false);
|
||||
if (publicModuleName != M->getName()) {
|
||||
options_block::PublicModuleNameLayout PublicModuleName(Out);
|
||||
PublicModuleName.emit(ScratchRecord, publicModuleName.str());
|
||||
}
|
||||
|
||||
if (M->isConcurrencyChecked()) {
|
||||
options_block::IsConcurrencyCheckedLayout IsConcurrencyChecked(Out);
|
||||
IsConcurrencyChecked.emit(ScratchRecord);
|
||||
@@ -3375,6 +3382,10 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
|
||||
RawLayoutDeclAttrLayout::emitRecord(
|
||||
S.Out, S.ScratchRecord, abbrCode, attr->isImplicit(),
|
||||
typeID, countID, rawSize, rawAlign, attr->shouldMoveAsLikeType());
|
||||
return;
|
||||
}
|
||||
case DeclAttrKind::Lifetime: {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user