@@ -1037,8 +1037,8 @@ static void setPrivateDiscriminatorIfNeeded(IRGenOptions &IRGenOpts,
1037
1037
IRGenOpts.DWARFDebugFlags += (" -private-discriminator " + PD.str ()).str ();
1038
1038
}
1039
1039
1040
- static bool serializeSIB (FrontendOptions &opts, SILModule *SM,
1041
- ASTContext &Context, ModuleOrSourceFile MSF) {
1040
+ static bool serializeSIBIfNeeded (FrontendOptions &opts, SILModule *SM,
1041
+ ASTContext &Context, ModuleOrSourceFile MSF) {
1042
1042
const std::string &moduleOutputPath = opts.ModuleOutputPath ;
1043
1043
assert (!moduleOutputPath.empty () && " must have an output path" );
1044
1044
@@ -1175,8 +1175,8 @@ static bool performCompileStepsPostSILGen(CompilerInstance &Instance,
1175
1175
1176
1176
if (Action == FrontendOptions::ActionType::EmitSIBGen) {
1177
1177
linkAllIfNeeded (Invocation, SM.get ());
1178
- serializeSIB (Invocation.getFrontendOptions (), SM.get (),
1179
- Instance.getASTContext (), MSF);
1178
+ serializeSIBIfNeeded (Invocation.getFrontendOptions (), SM.get (),
1179
+ Instance.getASTContext (), MSF);
1180
1180
return Context.hadError ();
1181
1181
}
1182
1182
@@ -1235,8 +1235,8 @@ static bool performCompileStepsPostSILGen(CompilerInstance &Instance,
1235
1235
opts.ImplicitObjCHeaderPath , moduleIsPublic);
1236
1236
1237
1237
if (Action == FrontendOptions::ActionType::EmitSIB)
1238
- return serializeSIB (Invocation.getFrontendOptions (), SM.get (),
1239
- Instance.getASTContext (), MSF);
1238
+ return serializeSIBIfNeeded (Invocation.getFrontendOptions (), SM.get (),
1239
+ Instance.getASTContext (), MSF);
1240
1240
1241
1241
const bool haveModulePath =
1242
1242
!opts.ModuleOutputPath .empty () || !opts.ModuleDocOutputPath .empty ();
0 commit comments