Revert an accidental commit af5ca40b47b3e85c3add81ccdc0b787c4bc355ae

This commit is contained in:
Rui Ueyama 2019-12-13 15:17:10 +09:00
parent 8ba96bda06
commit bd7cf0f396
2 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -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<StringRef, BitcodeModule> &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));