mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Moved lexical lifetime flag to SILOptions.
Previously, the flag was a LangOptioins. That didn't make much sense because this isn't really a user-facing behavior. More importantly, as a member of that type type it couldn't be accessed when setting up pass pipelines. Here, the flag is moved to SILOptions.
This commit is contained in:
@@ -434,9 +434,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.EnableExperimentalConcurrency |=
|
||||
Args.hasArg(OPT_enable_experimental_concurrency);
|
||||
|
||||
Opts.EnableExperimentalLexicalLifetimes |=
|
||||
Args.hasArg(OPT_enable_experimental_lexical_lifetimes);
|
||||
|
||||
Opts.EnableExperimentalNamedOpaqueTypes |=
|
||||
Args.hasArg(OPT_enable_experimental_named_opaque_types);
|
||||
|
||||
@@ -1400,6 +1397,8 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
// -Ounchecked might also set removal of runtime asserts (cond_fail).
|
||||
Opts.RemoveRuntimeAsserts |= Args.hasArg(OPT_RemoveRuntimeAsserts);
|
||||
|
||||
Opts.EnableExperimentalLexicalLifetimes |=
|
||||
Args.hasArg(OPT_enable_experimental_lexical_lifetimes);
|
||||
Opts.EnableCopyPropagation |= Args.hasArg(OPT_enable_copy_propagation);
|
||||
Opts.DisableCopyPropagation |= Args.hasArg(OPT_disable_copy_propagation);
|
||||
Opts.EnableARCOptimizations &= !Args.hasArg(OPT_disable_arc_opts);
|
||||
|
||||
Reference in New Issue
Block a user