mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Frontend: IRGen arg parsing gets LangOpts.
Among other things, facilitates using features rather than bespoke flags.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user