mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Downgrade CompilerInvocation to FrontendOptions
This commit is contained in:
@@ -461,10 +461,9 @@ static bool compileLLVMIR(CompilerInstance &Instance) {
|
|||||||
Module.get(), inputsAndOutputs.getSingleOutputFilename());
|
Module.get(), inputsAndOutputs.getSingleOutputFilename());
|
||||||
}
|
}
|
||||||
|
|
||||||
static void verifyGenericSignaturesIfNeeded(const CompilerInvocation &Invocation,
|
static void verifyGenericSignaturesIfNeeded(const FrontendOptions &opts,
|
||||||
ASTContext &Context) {
|
ASTContext &Context) {
|
||||||
auto verifyGenericSignaturesInModule =
|
auto verifyGenericSignaturesInModule = opts.VerifyGenericSignaturesInModule;
|
||||||
Invocation.getFrontendOptions().VerifyGenericSignaturesInModule;
|
|
||||||
if (verifyGenericSignaturesInModule.empty())
|
if (verifyGenericSignaturesInModule.empty())
|
||||||
return;
|
return;
|
||||||
if (auto module = Context.getModuleByName(verifyGenericSignaturesInModule))
|
if (auto module = Context.getModuleByName(verifyGenericSignaturesInModule))
|
||||||
@@ -932,7 +931,7 @@ static void performEndOfPipelineActions(CompilerInstance &Instance) {
|
|||||||
ctx.verifyAllLoadedModules();
|
ctx.verifyAllLoadedModules();
|
||||||
|
|
||||||
// Verify generic signatures if we've been asked to.
|
// Verify generic signatures if we've been asked to.
|
||||||
verifyGenericSignaturesIfNeeded(Invocation, ctx);
|
verifyGenericSignaturesIfNeeded(Invocation.getFrontendOptions(), ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Emit any additional outputs that we only need for a successful compilation.
|
// Emit any additional outputs that we only need for a successful compilation.
|
||||||
|
|||||||
Reference in New Issue
Block a user