FineModuleTracing: only collect fine-grained tracing for those source files that compiler promises to type check.

rdar://141065994
This commit is contained in:
Xi Ge
2024-12-10 16:30:04 -08:00
parent 02b4bac7fc
commit c868515fae
3 changed files with 15 additions and 29 deletions

View File

@@ -1001,7 +1001,7 @@ static void performEndOfPipelineActions(CompilerInstance &Instance) {
Instance.getMainModule(), Instance.getDependencyTracker(), opts);
dumpAPIIfNeeded(Instance);
swift::emitFineModuleTraceIfNeeded(Instance.getMainModule(), opts);
swift::emitFineModuleTraceIfNeeded(Instance, opts);
}
// Contains the hadError checks internally, we still want to output the