Skip to content

Commit

Permalink
[ELF] Fix TimeTraceScope for "Finalize .eh_frame"
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Dec 3, 2022
1 parent 7d147a3 commit d98c172
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lld/ELF/Writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1882,15 +1882,15 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
ElfSym::tlsModuleBase = cast<Defined>(s);
}
}
}

if (!config->relocatable) {
llvm::TimeTraceScope timeScope("Finalize .eh_frame");
// This responsible for splitting up .eh_frame section into
// pieces. The relocation scan uses those pieces, so this has to be
// earlier.
for (Partition &part : partitions)
finalizeSynthetic(part.ehFrame.get());
{
llvm::TimeTraceScope timeScope("Finalize .eh_frame");
for (Partition &part : partitions)
finalizeSynthetic(part.ehFrame.get());
}

if (config->hasDynSymTab) {
parallelForEach(symtab.getSymbols(), [](Symbol *sym) {
Expand Down

0 comments on commit d98c172

Please sign in to comment.