Skip to content

Commit 122deaa

Browse files
authored
Merge pull request #32303 from apple/revert-32216-ks/coverage-modules
Revert "Emit coverage mappings for all modules"
2 parents 5ef2751 + 499ed05 commit 122deaa

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,11 +1105,8 @@ void IRGenerator::emitGlobalTopLevel(llvm::StringSet<> *linkerDirectives) {
11051105
IGM->emitSILDifferentiabilityWitness(&dw);
11061106
}
11071107

1108-
// Emit code coverage mapping data for all modules
1109-
for (auto Iter : *this) {
1110-
IRGenModule *IGM = Iter.second;
1111-
IGM->emitCoverageMapping();
1112-
}
1108+
// Emit code coverage mapping data.
1109+
PrimaryIGM->emitCoverageMapping();
11131110

11141111
for (auto Iter : *this) {
11151112
IRGenModule *IGM = Iter.second;

test/Profiler/Inputs/coverage_num_threads1.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/Profiler/Inputs/coverage_num_threads2.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/Profiler/coverage_num_threads.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)