[embedded] Start fencing parts of IRGen that are not compatible with embedded Swift.

This commit is contained in:
zoecarver
2023-08-29 23:05:47 -07:00
parent 52cea4250e
commit 349d37ab24
9 changed files with 70 additions and 4 deletions

View File

@@ -1597,7 +1597,8 @@ const TypeInfo *irgen::getPhysicalStructFieldTypeInfo(IRGenModule &IGM,
}
void IRGenModule::emitStructDecl(StructDecl *st) {
if (!IRGen.hasLazyMetadata(st)) {
if (!IRGen.hasLazyMetadata(st) &&
!st->getASTContext().LangOpts.hasFeature(Feature::Embedded)) {
emitStructMetadata(*this, st);
emitFieldDescriptor(st);
}