[lld] a86cfce - [ELF] Add gdb index time trace
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 15:13:38 PST 2022
Author: Andreas Hollandt
Date: 2022-11-06T15:13:32-08:00
New Revision: a86cfceb44114b3eb871c808d0caca9d512ec5b3
URL: https://github.com/llvm/llvm-project/commit/a86cfceb44114b3eb871c808d0caca9d512ec5b3
DIFF: https://github.com/llvm/llvm-project/commit/a86cfceb44114b3eb871c808d0caca9d512ec5b3.diff
LOG: [ELF] Add gdb index time trace
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D135659
Added:
Modified:
lld/ELF/SyntheticSections.cpp
Removed:
################################################################################
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp
index cb98a2daf942..316d89411cda 100644
--- a/lld/ELF/SyntheticSections.cpp
+++ b/lld/ELF/SyntheticSections.cpp
@@ -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
More information about the llvm-commits
mailing list