[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

Jonathon Penix via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 12:06:20 PDT 2022


jpenix-quic added inline comments.


================
Comment at: flang/lib/Lower/Bridge.cpp:203
     //    them.
     for (Fortran::lower::pft::Program::Units &u : pft.getUnits()) {
       std::visit(Fortran::common::visitors{
----------------
peixin wrote:
> Doing this can avoid add one variable to the bridge.
Done! (Although, I added the `isMainProgram()` check/update to the lambda below as it is a member function of `FunctionLikeUnit` specifically--please let me know if this looks ok!)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130513/new/

https://reviews.llvm.org/D130513



More information about the cfe-commits mailing list