[flang][nfc] Fix driver method names overridden by the plugins
authorAndrzej Warzynski <andrzej.warzynski@arm.com>
Sun, 15 May 2022 17:53:09 +0000 (17:53 +0000)
committerAndrzej Warzynski <andrzej.warzynski@arm.com>
Sun, 15 May 2022 17:58:04 +0000 (17:58 +0000)
After the recent re-factoring of the driver code
(https://reviews.llvm.org/D125007), `ExecuteAction` was renamed as
`executeAction`. This patch updates the examples in Flang accordingly.

If you set `FLANG_BUILD_EXAMPLES` to `On` when building Flang, then the
refactoring from D125007 would have caused build failures for you. This
patch fixes that.

This is fairly straightforward and fixes buildbot failures, so I'm
sending this without a review.

flang/examples/FlangOmpReport/FlangOmpReport.cpp
flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp

index 229d6d1..9c1f304 100644 (file)
@@ -49,7 +49,7 @@ template <> struct MappingTraits<LogRecord> {
 } // namespace llvm
 
 class FlangOmpReport : public PluginParseTreeAction {
-  void ExecuteAction() override {
+  void executeAction() override {
     // Prepare the parse tree and the visitor
     Parsing &parsing = getParsing();
     OpenMPCounterVisitor visitor;
index 90590be..4a84c3b 100644 (file)
@@ -65,7 +65,7 @@ class PrintFunctionNamesAction : public PluginParseTreeAction {
     bool isInSubprogram_{false};
   };
 
-  void ExecuteAction() override {
+  void executeAction() override {
     ParseTreeVisitor visitor;
     Fortran::parser::Walk(getParsing().parseTree(), visitor);