Skip to content

Commit 13c97a8

Browse files
committed
[NFC] Downgrade CompilerInvocation to FrontendOptions
1 parent 17143cb commit 13c97a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,9 @@ static bool compileLLVMIR(CompilerInstance &Instance) {
461461
Module.get(), inputsAndOutputs.getSingleOutputFilename());
462462
}
463463

464-
static void verifyGenericSignaturesIfNeeded(const CompilerInvocation &Invocation,
464+
static void verifyGenericSignaturesIfNeeded(const FrontendOptions &opts,
465465
ASTContext &Context) {
466-
auto verifyGenericSignaturesInModule =
467-
Invocation.getFrontendOptions().VerifyGenericSignaturesInModule;
466+
auto verifyGenericSignaturesInModule = opts.VerifyGenericSignaturesInModule;
468467
if (verifyGenericSignaturesInModule.empty())
469468
return;
470469
if (auto module = Context.getModuleByName(verifyGenericSignaturesInModule))
@@ -932,7 +931,7 @@ static void performEndOfPipelineActions(CompilerInstance &Instance) {
932931
ctx.verifyAllLoadedModules();
933932

934933
// Verify generic signatures if we've been asked to.
935-
verifyGenericSignaturesIfNeeded(Invocation, ctx);
934+
verifyGenericSignaturesIfNeeded(Invocation.getFrontendOptions(), ctx);
936935
}
937936

938937
// Emit any additional outputs that we only need for a successful compilation.

0 commit comments

Comments
 (0)