aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2020-10-19 18:25:35 -0700
committerVolodymyr Sapsai <vsapsai@apple.com>2020-10-19 18:27:30 -0700
commita28678e20a112f8851fda2550e415924420bdcd5 (patch)
treeb8219a2ea726de2f3a1ff6271f02bb302acd598f /clang/lib/Frontend/CompilerInstance.cpp
parent3a85472af2b6f758c43999e0c013142271f72e74 (diff)
downloadllvm-a28678e20a112f8851fda2550e415924420bdcd5.zip
llvm-a28678e20a112f8851fda2550e415924420bdcd5.tar.gz
llvm-a28678e20a112f8851fda2550e415924420bdcd5.tar.bz2
Revert "Reland "[Modules] Add stats to measure performance of building and loading modules.""
This reverts commit 4000c9ee18ecebe3ff0f197af8c1fb434ad986e5. Test "LLVM :: Other/statistic.ll" is failing on Windows.
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 =