diff options
Diffstat (limited to 'lld/ELF/MarkLive.cpp')
-rw-r--r-- | lld/ELF/MarkLive.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp index bb0105c2892..b77fab9abb6 100644 --- a/lld/ELF/MarkLive.cpp +++ b/lld/ELF/MarkLive.cpp @@ -31,6 +31,7 @@ #include "lld/Common/Strings.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Object/ELF.h" +#include "llvm/Support/TimeProfiler.h" #include <functional> #include <vector> @@ -323,6 +324,7 @@ template <class ELFT> void MarkLive<ELFT>::moveToMain() { // input sections. This function make some or all of them on // so that they are emitted to the output file. template <class ELFT> void markLive() { + llvm::TimeTraceScope timeScope("GC"); // If -gc-sections is not given, no sections are removed. if (!config->gcSections) { for (InputSectionBase *sec : inputSections) |