summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-08-08 19:14:23 +0000
committerCraig Topper <craig.topper@intel.com>2018-08-08 19:14:23 +0000
commit2a92a0efc7006c86da255041649412e429796e22 (patch)
treef406f68048bea47319a2aa60788f7e0fdbf6e8fe /clang/lib/CodeGen/CodeGenAction.cpp
parent1001b3b0a10638787c0cff5761c93b87e2111c92 (diff)
downloadbcm5719-llvm-2a92a0efc7006c86da255041649412e429796e22.tar.gz
bcm5719-llvm-2a92a0efc7006c86da255041649412e429796e22.zip
[CodeGen][Timers] Enable llvm::TimePassesIsEnabled when -ftime-report is specified
r330571 added a new FrontendTimesIsEnabled variable and replaced many usages of llvm::TimePassesIsEnabled. Including the place that set llvm::TimePassesIsEnabled for -ftime-report. The effect of this is that -ftime-report now only contains the timers specifically referenced in CodeGenAction.cpp and none of the timers in the backend. This commit adds back the assignment, but otherwise leaves everything else unchanged. llvm-svn: 339281
Diffstat (limited to 'clang/lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenAction.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp
index d499364002f..1a2b0616dc7 100644
--- a/clang/lib/CodeGen/CodeGenAction.cpp
+++ b/clang/lib/CodeGen/CodeGenAction.cpp
@@ -127,6 +127,7 @@ namespace clang {
CodeGenOpts, C, CoverageInfo)),
LinkModules(std::move(LinkModules)) {
FrontendTimesIsEnabled = TimePasses;
+ llvm::TimePassesIsEnabled = TimePasses;
}
llvm::Module *getModule() const { return Gen->GetModule(); }
std::unique_ptr<llvm::Module> takeModule() {
OpenPOWER on IntegriCloud