[ELF] Add gdb index time trace

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D135659
This commit is contained in:
Andreas Hollandt 2022-11-06 15:13:32 -08:00 committed by Fangrui Song
parent b84fd822fa
commit a86cfceb44
1 changed files with 2 additions and 0 deletions

View File

@ -2835,6 +2835,8 @@ createSymbols(
// Returns a newly-created .gdb_index section.
template <class ELFT> GdbIndexSection *GdbIndexSection::create() {
llvm::TimeTraceScope timeScope("Create gdb index");
// Collect InputFiles with .debug_info. See the comment in
// LLDDwarfObj<ELFT>::LLDDwarfObj. If we do lightweight parsing in the future,
// note that isec->data() may uncompress the full content, which should be