diff options
Diffstat (limited to 'lld/COFF/LTO.cpp')
| -rw-r--r-- | lld/COFF/LTO.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/COFF/LTO.cpp b/lld/COFF/LTO.cpp index 1050874a1b10..a988be610864 100644 --- a/lld/COFF/LTO.cpp +++ b/lld/COFF/LTO.cpp @@ -26,6 +26,7 @@ #include "llvm/Support/Caching.h" #include "llvm/Support/CodeGen.h" #include "llvm/Support/MemoryBuffer.h" +#include "llvm/Support/TimeProfiler.h" #include "llvm/Support/raw_ostream.h" #include <cstddef> #include <memory> @@ -176,6 +177,7 @@ void BitcodeCompiler::add(BitcodeFile &f) { // Merge all the bitcode files we have seen, codegen the result // and return the resulting objects. std::vector<InputFile *> BitcodeCompiler::compile() { + llvm::TimeTraceScope timeScope("Bitcode compile"); unsigned maxTasks = ltoObj->getMaxTasks(); buf.resize(maxTasks); files.resize(maxTasks); |
