@@ -631,7 +631,7 @@ LTO::~LTO() = default;
631631void LTO::addModuleToGlobalRes (ArrayRef<InputFile::Symbol> Syms,
632632 ArrayRef<SymbolResolution> Res,
633633 unsigned Partition, bool InSummary) {
634- llvm::TimeTraceScope importScope (" LTO add module to global resolution" );
634+ llvm::TimeTraceScope timeScope (" LTO add module to global resolution" );
635635 auto *ResI = Res.begin ();
636636 auto *ResE = Res.end ();
637637 (void )ResE;
@@ -732,7 +732,7 @@ static void writeToResolutionFile(raw_ostream &OS, InputFile *Input,
732732
733733Error LTO::add (std::unique_ptr<InputFile> Input,
734734 ArrayRef<SymbolResolution> Res) {
735- llvm::TimeTraceScope importScope (" LTO add input" , Input->getName ());
735+ llvm::TimeTraceScope timeScope (" LTO add input" , Input->getName ());
736736 assert (!CalledGetMaxTasks);
737737
738738 if (Conf.ResolutionFile )
@@ -758,7 +758,7 @@ Error LTO::add(std::unique_ptr<InputFile> Input,
758758Expected<ArrayRef<SymbolResolution>>
759759LTO::addModule (InputFile &Input, ArrayRef<SymbolResolution> InputRes,
760760 unsigned ModI, ArrayRef<SymbolResolution> Res) {
761- llvm::TimeTraceScope importScope (" LTO add module" , Input.getName ());
761+ llvm::TimeTraceScope timeScope (" LTO add module" , Input.getName ());
762762 Expected<BitcodeLTOInfo> LTOInfo = Input.Mods [ModI].getLTOInfo ();
763763 if (!LTOInfo)
764764 return LTOInfo.takeError ();
@@ -853,7 +853,7 @@ Expected<
853853LTO::addRegularLTO (InputFile &Input, ArrayRef<SymbolResolution> InputRes,
854854 BitcodeModule BM, ArrayRef<InputFile::Symbol> Syms,
855855 ArrayRef<SymbolResolution> Res) {
856- llvm::TimeTraceScope importScope (" LTO add regular LTO" );
856+ llvm::TimeTraceScope timeScope (" LTO add regular LTO" );
857857 RegularLTOState::AddedModule Mod;
858858 Expected<std::unique_ptr<Module>> MOrErr =
859859 BM.getLazyModule (RegularLTO.Ctx , /* ShouldLazyLoadMetadata*/ true ,
@@ -1028,7 +1028,7 @@ LTO::addRegularLTO(InputFile &Input, ArrayRef<SymbolResolution> InputRes,
10281028
10291029Error LTO::linkRegularLTO (RegularLTOState::AddedModule Mod,
10301030 bool LivenessFromIndex) {
1031- llvm::TimeTraceScope importScope (" LTO link regular LTO" );
1031+ llvm::TimeTraceScope timeScope (" LTO link regular LTO" );
10321032 std::vector<GlobalValue *> Keep;
10331033 for (GlobalValue *GV : Mod.Keep ) {
10341034 if (LivenessFromIndex && !ThinLTO.CombinedIndex .isGUIDLive (GV->getGUID ())) {
@@ -1068,7 +1068,7 @@ Error LTO::linkRegularLTO(RegularLTOState::AddedModule Mod,
10681068Expected<ArrayRef<SymbolResolution>>
10691069LTO::addThinLTO (BitcodeModule BM, ArrayRef<InputFile::Symbol> Syms,
10701070 ArrayRef<SymbolResolution> Res) {
1071- llvm::TimeTraceScope importScope (" LTO add thin LTO" );
1071+ llvm::TimeTraceScope timeScope (" LTO add thin LTO" );
10721072 ArrayRef<SymbolResolution> ResTmp = Res;
10731073 for (const InputFile::Symbol &Sym : Syms) {
10741074 assert (!ResTmp.empty ());
@@ -1258,7 +1258,7 @@ Error LTO::run(AddStreamFn AddStream, FileCache Cache) {
12581258
12591259void lto::updateMemProfAttributes (Module &Mod,
12601260 const ModuleSummaryIndex &Index) {
1261- llvm::TimeTraceScope importScope (" LTO update memprof attributes" );
1261+ llvm::TimeTraceScope timeScope (" LTO update memprof attributes" );
12621262 if (Index.withSupportsHotColdNew ())
12631263 return ;
12641264
0 commit comments