mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: Introduce -experimental-skip-non-exportable-decls.
Rename -experimental-serialize-external-decls only to -experimental-skip-non-exportable-decls in preparation for the flag being used to influence more than just serialization. Resolves rdar://116771543
This commit is contained in:
@@ -2000,6 +2000,9 @@ static bool ParseSILArgs(SILOptions &Opts, ArgList &Args,
|
||||
// -experimental-skip-*-function-bodies to SIL.
|
||||
Opts.SkipFunctionBodies = TCOpts.SkipFunctionBodies;
|
||||
|
||||
// Propagate -experimental-skip-non-exportable-decls to SIL.
|
||||
Opts.SkipNonExportableDecls = FEOpts.SkipNonExportableDecls;
|
||||
|
||||
// Parse the optimization level.
|
||||
// Default to Onone settings if no option is passed.
|
||||
Opts.OptMode = OptimizationMode::NoOptimization;
|
||||
|
||||
Reference in New Issue
Block a user