Skip to content

Commit 499ed05

Browse files
authored
Revert "Emit coverage mappings for all modules"
1 parent 41758c0 commit 499ed05

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

lib/IRGen/GenDecl.cpp

+2-5
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

-1
This file was deleted.

test/Profiler/Inputs/coverage_num_threads2.swift

-1
This file was deleted.

test/Profiler/coverage_num_threads.swift

-12
This file was deleted.

0 commit comments

Comments
 (0)