IRGen: Default to clang's frame pointer elimination settings

Clang provides options to override that default value.
These options are accessible via the -Xcc flag.

Some Swift functions explicitly disable the frame pointer.

The clang options will not override those.
This commit is contained in:
Arnold Schwaighofer
2020-05-22 12:33:30 -07:00
parent 456775f8b4
commit 20f4ef93de
10 changed files with 57 additions and 77 deletions

View File

@@ -1514,9 +1514,6 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
getRuntimeCompatVersion();
}
if (Args.hasArg(OPT_disable_leaf_frame_pointer_elim))
Opts.DisableFPElimLeaf = true;
return false;
}