[NFC] Frontend: IRGen arg parsing gets LangOpts.

Among other things, facilitates using features rather than bespoke
flags.
This commit is contained in:
Nate Chandler
2024-10-10 17:37:18 -07:00
parent 627a799fb2
commit 9e45aa5975

View File

@@ -2981,6 +2981,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
DiagnosticEngine &Diags,
const FrontendOptions &FrontendOpts,
const SILOptions &SILOpts,
const LangOptions &LangOpts,
StringRef SDKPath,
StringRef ResourceDir,
const llvm::Triple &Triple) {
@@ -3694,7 +3695,7 @@ bool CompilerInvocation::parseArgs(
}
if (ParseIRGenArgs(IRGenOpts, ParsedArgs, Diags, FrontendOpts, SILOpts,
getSDKPath(), SearchPathOpts.RuntimeResourcePath,
LangOpts, getSDKPath(), SearchPathOpts.RuntimeResourcePath,
LangOpts.Target)) {
return true;
}