From ea18987094eff5a5835135da1f472d2e7bf6c68e Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Sun, 15 May 2022 17:53:09 +0000 Subject: [PATCH] [flang][nfc] Fix driver method names overridden by the plugins 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 | 2 +- flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flang/examples/FlangOmpReport/FlangOmpReport.cpp b/flang/examples/FlangOmpReport/FlangOmpReport.cpp index 229d6d1..9c1f304 100644 --- a/flang/examples/FlangOmpReport/FlangOmpReport.cpp +++ b/flang/examples/FlangOmpReport/FlangOmpReport.cpp @@ -49,7 +49,7 @@ template <> struct MappingTraits { } // namespace llvm class FlangOmpReport : public PluginParseTreeAction { - void ExecuteAction() override { + void executeAction() override { // Prepare the parse tree and the visitor Parsing &parsing = getParsing(); OpenMPCounterVisitor visitor; diff --git a/flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp b/flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp index 90590be..4a84c3b 100644 --- a/flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp +++ b/flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp @@ -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); -- 2.7.4