From bd7cf0f396b0a98b6c0ce546d37250eb0966f175 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 13 Dec 2019 15:17:10 +0900 Subject: [PATCH] Revert an accidental commit af5ca40b47b3e85c3add81ccdc0b787c4bc355ae --- include/llvm/LTO/Config.h | 6 ------ lib/LTO/LTO.cpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/include/llvm/LTO/Config.h b/include/llvm/LTO/Config.h index 6db1235a692..754e3126f8a 100644 --- a/include/llvm/LTO/Config.h +++ b/include/llvm/LTO/Config.h @@ -117,12 +117,6 @@ struct Config { /// Statistics output file path. std::string StatsFile; - /// Time trace enabled - bool TimeTraceEnabled = false; - - /// Time trace granularity - unsigned TimeTraceGranularity = 500; - bool ShouldDiscardValueNames = true; DiagnosticHandlerFunction DiagHandler; diff --git a/lib/LTO/LTO.cpp b/lib/LTO/LTO.cpp index e2c8aa15989..0d48090e426 100644 --- a/lib/LTO/LTO.cpp +++ b/lib/LTO/LTO.cpp @@ -39,7 +39,6 @@ #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/ThreadPool.h" #include "llvm/Support/Threading.h" -#include "llvm/Support/TimeProfiler.h" #include "llvm/Support/VCSRevision.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetMachine.h" @@ -1134,9 +1133,6 @@ public: &ResolvedODR, const GVSummaryMapTy &DefinedGlobals, MapVector &ModuleMap) { - if (Conf.TimeTraceEnabled) - timeTraceProfilerInitialize(Conf.TimeTraceGranularity, - "thin backend"); Error E = runThinLTOBackendThread( AddStream, Cache, Task, BM, CombinedIndex, ImportList, ExportList, ResolvedODR, DefinedGlobals, ModuleMap); @@ -1147,8 +1143,6 @@ public: else Err = std::move(E); } - if (timeTraceProfilerEnabled()) - timeTraceProfilerFinishThread(); }, BM, std::ref(CombinedIndex), std::ref(ImportList), std::ref(ExportList), std::ref(ResolvedODR), std::ref(DefinedGlobals), std::ref(ModuleMap));