Add a flag to enable/disable usage of objective c protocol symbolic references

This commit is contained in:
Arnold Schwaighofer
2023-10-06 06:53:27 -07:00
parent b0424759d7
commit 894095a5f2
7 changed files with 20 additions and 3 deletions

View File

@@ -2927,6 +2927,11 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
return true;
}
Opts.EnableObjectiveCProtocolSymbolicReferences =
Args.hasFlag(OPT_enable_objective_c_protocol_symbolic_references,
OPT_disable_objective_c_protocol_symbolic_references,
Opts.EnableObjectiveCProtocolSymbolicReferences);
if (const Arg *A = Args.getLastArg(options::OPT_platform_c_calling_convention)) {
Opts.PlatformCCallingConvention =
llvm::StringSwitch<llvm::CallingConv::ID>(A->getValue())