@@ -160,14 +160,8 @@ void FixupStubs(Ref<AnalysisContext> ctx)
160160 {
161161 // Update all the functions inside our current activities function section.
162162 for (const auto §Func : view->GetAnalysisFunctionList ())
163- {
164163 if (section->GetStart () <= sectFunc->GetStart () && sectFunc->GetStart () < section->GetEnd ())
165- {
166- // If there are any new functions we should re-analyze the current function.
167- func->Reanalyze ();
168- break ;
169- }
170- }
164+ sectFunc->Reanalyze ();
171165 }
172166
173167 workflowState->loadMutex .unlock ();
@@ -184,7 +178,6 @@ void FixupStubs(Ref<AnalysisContext> ctx)
184178 if (dest.operation == MLIL_CONST_PTR)
185179 {
186180 // We're ready, everything is here
187- // TODO: what the fuck does the above mean?
188181 func->SetAutoInlinedDuringAnalysis (true );
189182 return ;
190183 }
@@ -388,7 +381,7 @@ void SharedCacheWorkflow::Register()
388381 ObjCActivity::Register (*workflow);
389382 workflow->RegisterActivity (new Activity (" core.analysis.sharedCache.stubs" , &FixupStubs));
390383 workflow->RegisterActivity (new Activity (" core.analysis.sharedCache.calls" , &FixupOffImageCalls));
391- // workflow->Insert("core.function.analyzeTailCalls", "core.analysis.dsc .stubs");
384+ workflow->Insert (" core.function.analyzeTailCalls" , " core.analysis.sharedCache .stubs" );
392385 workflow->Insert (" core.function.analyzeTailCalls" , " core.analysis.sharedCache.calls" );
393386
394387 Workflow::RegisterWorkflow (workflow, WORKFLOW_DESCRIPTION);
0 commit comments