IRGen: Put type descriptors in their own section to collocated them

rdar://104697150
This commit is contained in:
Arnold Schwaighofer
2023-02-25 07:51:30 -08:00
parent 8790101221
commit 8a7b8dc39c
10 changed files with 47 additions and 11 deletions

View File

@@ -2534,6 +2534,9 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
Args.hasFlag(OPT_disable_new_llvm_pass_manager,
OPT_enable_new_llvm_pass_manager,
Opts.LegacyPassManager);
Opts.ColocateTypeDescriptors = Args.hasFlag(OPT_enable_colocate_type_descriptors,
OPT_disable_colocate_type_descriptors,
Opts.ColocateTypeDescriptors);
Opts.CollocatedMetadataFunctions =
Args.hasFlag(OPT_enable_collocate_metadata_functions,
OPT_disable_collocate_metadata_functions,