Change the logic to exclude extended frame info on all platforms but darwin

This commit is contained in:
Arnold Schwaighofer
2021-09-14 12:48:27 -07:00
parent 2381233ac1
commit a1a9dd16ce
2 changed files with 11 additions and 8 deletions

View File

@@ -1908,8 +1908,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Opts.VirtualFunctionElimination = true;
}
// Default to disabling swift async extended frame info on linux.
if (Triple.getOS() == llvm::Triple::Linux) {
// Default to disabling swift async extended frame info on anything but
// darwin. Other platforms are unlikely to have support for extended frame
// pointer information.
if (!Triple.isOSDarwin()) {
Opts.SwiftAsyncFramePointer = SwiftAsyncFramePointerKind::Never;
}
if (const Arg *A = Args.getLastArg(OPT_swift_async_frame_pointer_EQ)) {