Merge branch 'main' into bump-swift-version-to-6

This commit is contained in:
Mishal Shah
2024-02-21 12:40:54 -08:00
committed by GitHub
235 changed files with 4640 additions and 952 deletions

View File

@@ -3276,6 +3276,10 @@ bool CompilerInvocation::parseArgs(
SILOpts.EmbeddedSwift = true;
// OSSA modules are required for deinit de-virtualization.
SILOpts.EnableOSSAModules = true;
// -g is promoted to -gdwarf-types in embedded Swift
if (IRGenOpts.DebugInfoLevel == IRGenDebugInfoLevel::ASTTypes) {
IRGenOpts.DebugInfoLevel = IRGenDebugInfoLevel::DwarfTypes;
}
} else {
if (SILOpts.NoAllocations) {
Diags.diagnose(SourceLoc(), diag::no_allocations_without_embedded);