[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

Andrew V. Tischenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 14 00:02:51 PDT 2018


avt77 added inline comments.


================
Comment at: lib/Basic/FrontendTiming.cpp:18
+
+bool FrontendTimesIsEnabled = false;
+
----------------
efriedma wrote:
> Why is this in lib/Basic, when the declaration is in include/clang/Frontend/?
Because this library is being linked to all others and as result this global variable could be seen in any Clang library w/o any changes in config files. Or you mean it should be moved from Frontend? But where? It's a frontend feature that's why I put its declaration there.


https://reviews.llvm.org/D45619





More information about the cfe-commits mailing list