aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/FrontendAction.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/FrontendAction.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/FrontendAction.cpp')
-rw-r--r--clang/lib/Frontend/FrontendAction.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index 9a50e745..9f789f0 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -1069,12 +1069,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI,
llvm::Error FrontendAction::Execute() {
CompilerInstance &CI = getCompilerInstance();
-
- if (CI.hasFrontendTimer()) {
- llvm::TimeRegion Timer(CI.getFrontendTimer());
- ExecuteAction();
- }
- else ExecuteAction();
+ ExecuteAction();
// If we are supposed to rebuild the global module index, do so now unless
// there were any module-build failures.