aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2020-09-24 12:36:06 -0700
committerVolodymyr Sapsai <vsapsai@apple.com>2020-09-24 12:36:06 -0700
commit9eba6b20a0579d3441e1b0f3cb3942f86d32679f (patch)
treed2321c7a1b81db6efd43e1ea25da26ffd0196c70 /clang/lib/Frontend/CompilerInstance.cpp
parent0a349d5827f6864ee89a5d0867d609339c07115d (diff)
downloadllvm-9eba6b20a0579d3441e1b0f3cb3942f86d32679f.zip
llvm-9eba6b20a0579d3441e1b0f3cb3942f86d32679f.tar.gz
llvm-9eba6b20a0579d3441e1b0f3cb3942f86d32679f.tar.bz2
Revert "[Modules] Add stats to measure performance of building and loading modules."
This reverts commit c4bacc3c9b333bb7032fb96f41d6f5b851623132. Test "LLVM :: ThinLTO/X86/funcimport-stats.ll" is failing. Reverting now and will recommit after making the test not fail with the added stats.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 4450493..4613ed8 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -55,10 +55,6 @@
using namespace clang;
-#define DEBUG_TYPE "modules"
-
-ALWAYS_ENABLED_STATISTIC(NumCompiledModules, "Number of compiled modules.");
-
CompilerInstance::CompilerInstance(
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
InMemoryModuleCache *SharedModuleCache)
@@ -1067,7 +1063,6 @@ compileModuleImpl(CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
llvm::function_ref<void(CompilerInstance &)> PostBuildStep =
[](CompilerInstance &) {}) {
llvm::TimeTraceScope TimeScope("Module Compile", ModuleName);
- ++NumCompiledModules;
// Construct a compiler invocation for creating this module.
auto Invocation =