Skip to content

Commit

Permalink
[flang][nfc] Fix driver method names overridden by the plugins
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
banach-space committed May 15, 2022
1 parent b3097eb commit ea18987
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flang/examples/FlangOmpReport/FlangOmpReport.cpp
Expand Up @@ -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;
Expand Down
Expand Up @@ -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);

Expand Down

0 comments on commit ea18987

Please sign in to comment.