Skip to content

Commit

Permalink
[flang] Remove ignoring all compiler directives warning
Browse files Browse the repository at this point in the history
The explicit `ignoring all compiler directives` reminder warning is no
longer accurate.  Any similar, more accurate message is best generated
by the front end (change pending).
  • Loading branch information
vdonaldson committed Apr 14, 2023
1 parent a4ad6a3 commit af78197
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
9 changes: 2 additions & 7 deletions flang/lib/Lower/Bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
[&](Fortran::lower::pft::FunctionLikeUnit &f) { lowerFunc(f); },
[&](Fortran::lower::pft::ModuleLikeUnit &m) { lowerMod(m); },
[&](Fortran::lower::pft::BlockDataUnit &b) {},
[&](Fortran::lower::pft::CompilerDirectiveUnit &d) {
setCurrentPosition(
d.get<Fortran::parser::CompilerDirective>().source);
mlir::emitWarning(toLocation(),
"ignoring all compiler directives");
},
[&](Fortran::lower::pft::CompilerDirectiveUnit &d) {},
},
u);
}
Expand Down Expand Up @@ -2003,7 +1998,7 @@ class FirConverter : public Fortran::lower::AbstractConverter {
}

void genFIR(const Fortran::parser::CompilerDirective &) {
mlir::emitWarning(toLocation(), "ignoring all compiler directives");
// TODO
}

void genFIR(const Fortran::parser::OpenACCConstruct &acc) {
Expand Down
13 changes: 0 additions & 13 deletions flang/test/Lower/compiler-directive.f90

This file was deleted.

0 comments on commit af78197

Please sign in to comment.