summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/FrontendActions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r--clang/lib/Frontend/FrontendActions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp
index 8cb6a04224d..74563ad04dd 100644
--- a/clang/lib/Frontend/FrontendActions.cpp
+++ b/clang/lib/Frontend/FrontendActions.cpp
@@ -262,6 +262,8 @@ VerifyPCHAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {
}
void VerifyPCHAction::ExecuteAction() {
+ llvm::NamedRegionTimer T("verifypch", "Verify PCH actions", GroupName,
+ GroupDescription, llvm::TimePassesIsEnabled);
CompilerInstance &CI = getCompilerInstance();
bool Preamble = CI.getPreprocessorOpts().PrecompiledPreambleBytes.first != 0;
const std::string &Sysroot = CI.getHeaderSearchOpts().Sysroot;
@@ -659,6 +661,8 @@ void PreprocessOnlyAction::ExecuteAction() {
}
void PrintPreprocessedAction::ExecuteAction() {
+ llvm::NamedRegionTimer T("printpp", "Print PP actions", GroupName,
+ GroupDescription, llvm::TimePassesIsEnabled);
CompilerInstance &CI = getCompilerInstance();
// Output file may need to be set to 'Binary', to avoid converting Unix style
// line feeds (<LF>) to Microsoft style line feeds (<CR><LF>).
OpenPOWER on IntegriCloud