summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-08-09 12:46:44 +0000
committerHans Wennborg <hans@hanshq.net>2018-08-09 12:46:44 +0000
commitace5c2356ac1890d8b863d8416c83317fd47733f (patch)
tree25ff15632f9c80407448714189b2de9aa22b0f82 /clang/lib/CodeGen/CodeGenAction.cpp
parent4d989f7996d43d3c4d01e057772bd279a9e81afc (diff)
downloadbcm5719-llvm-ace5c2356ac1890d8b863d8416c83317fd47733f.tar.gz
bcm5719-llvm-ace5c2356ac1890d8b863d8416c83317fd47733f.zip
Merging r339281:
------------------------------------------------------------------------ r339281 | ctopper | 2018-08-08 21:14:23 +0200 (Wed, 08 Aug 2018) | 5 lines [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: 339341
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