aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-01-12 13:17:49 -0800
committerFangrui Song <i@maskray.me>2025-01-12 13:17:49 -0800
commit5c0aa31c3cb448065f12ede53e4dd54a9a98f650 (patch)
treeb30a23bdc1ddd8271754fbe6e180df8a8d954895 /clang/lib/Frontend/CompilerInstance.cpp
parentf5a35a31bfe6cbc16bec0c130f2bb3632dbf1fbf (diff)
downloadllvm-5c0aa31c3cb448065f12ede53e4dd54a9a98f650.zip
llvm-5c0aa31c3cb448065f12ede53e4dd54a9a98f650.tar.gz
llvm-5c0aa31c3cb448065f12ede53e4dd54a9a98f650.tar.bz2
-ftime-report: Move FrontendTimer closer to TimeTraceScope
... to improve consistency and make "Clang time report" cover `FrontendAction::BeginSourceFile` and `FrontendAction::EndSourceFile`.
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index b00a4ac..c11c857 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1038,9 +1038,6 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
<< LLVM_VERSION_STRING << " default target "
<< llvm::sys::getDefaultTargetTriple() << "\n";
- if (getCodeGenOpts().TimePasses)
- createFrontendTimer();
-
if (getFrontendOpts().ShowStats || !getFrontendOpts().StatsFile.empty())
llvm::EnableStatistics(false);