mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #71962 from augusto2112/embedded-flag
[DebugInfo] Emit embedded swift into DW_AT_APPLE_flags
This commit is contained in:
@@ -122,14 +122,16 @@ static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
|
||||
CGO.DebugCompilationDir = Opts.DebugCompilationDir;
|
||||
CGO.DwarfVersion = Opts.DWARFVersion;
|
||||
CGO.DwarfDebugFlags =
|
||||
Opts.getDebugFlags(PD, Context.LangOpts.EnableCXXInterop);
|
||||
Opts.getDebugFlags(PD, Context.LangOpts.EnableCXXInterop,
|
||||
Context.LangOpts.hasFeature(Feature::Embedded));
|
||||
break;
|
||||
case IRGenDebugInfoFormat::CodeView:
|
||||
CGO.EmitCodeView = true;
|
||||
CGO.DebugCompilationDir = Opts.DebugCompilationDir;
|
||||
// This actually contains the debug flags for codeview.
|
||||
CGO.DwarfDebugFlags =
|
||||
Opts.getDebugFlags(PD, Context.LangOpts.EnableCXXInterop);
|
||||
Opts.getDebugFlags(PD, Context.LangOpts.EnableCXXInterop,
|
||||
Context.LangOpts.hasFeature(Feature::Embedded));
|
||||
break;
|
||||
}
|
||||
if (!Opts.TrapFuncName.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user