Merge pull request #36025 from gottesmm/pr-36fe6ec4772e3d5e09f5031a505217e7d7aba8dc

[ownership] On non-Darwin platforms, serialize the stdlib in OSSA form.
This commit is contained in:
Michael Gottesman
2021-02-17 19:48:25 -08:00
committed by GitHub
15 changed files with 281 additions and 270 deletions

View File

@@ -1201,11 +1201,6 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
Args.hasArg(OPT_sil_stop_optzns_before_lowering_ownership);
if (const Arg *A = Args.getLastArg(OPT_external_pass_pipeline_filename))
Opts.ExternalPassPipelineFilename = A->getValue();
// If our triple is a darwin triple, lower ownership on the stdlib after we
// serialize.
if (Triple.isOSDarwin()) {
Opts.SerializeStdlibWithOwnershipWithOpts = true;
}
Opts.GenerateProfile |= Args.hasArg(OPT_profile_generate);
const Arg *ProfileUse = Args.getLastArg(OPT_profile_use);