Skip to content

Commit d98c172

Browse files
committed
[ELF] Fix TimeTraceScope for "Finalize .eh_frame"
1 parent 7d147a3 commit d98c172

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lld/ELF/Writer.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -1882,15 +1882,15 @@ template <class ELFT> void Writer<ELFT>::finalizeSections() {
18821882
ElfSym::tlsModuleBase = cast<Defined>(s);
18831883
}
18841884
}
1885-
}
18861885

1887-
if (!config->relocatable) {
1888-
llvm::TimeTraceScope timeScope("Finalize .eh_frame");
18891886
// This responsible for splitting up .eh_frame section into
18901887
// pieces. The relocation scan uses those pieces, so this has to be
18911888
// earlier.
1892-
for (Partition &part : partitions)
1893-
finalizeSynthetic(part.ehFrame.get());
1889+
{
1890+
llvm::TimeTraceScope timeScope("Finalize .eh_frame");
1891+
for (Partition &part : partitions)
1892+
finalizeSynthetic(part.ehFrame.get());
1893+
}
18941894

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

0 commit comments

Comments
 (0)