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