mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a -reflection-metadata-for-debugger-only flag that emits reflection metadata but does not link them from runtime data structures (#40853)
This commit is contained in:
committed by
GitHub
parent
6c23d92765
commit
ee7e04822c
@@ -2043,10 +2043,15 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_disable_reflection_metadata)) {
|
||||
Opts.EnableReflectionMetadata = false;
|
||||
Opts.ReflectionMetadata = ReflectionMetadataMode::None;
|
||||
Opts.EnableReflectionNames = false;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_reflection_metadata_for_debugger_only)) {
|
||||
Opts.ReflectionMetadata = ReflectionMetadataMode::DebuggerOnly;
|
||||
Opts.EnableReflectionNames = true;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_enable_anonymous_context_mangled_names))
|
||||
Opts.EnableAnonymousContextMangledNames = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user