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

Peixin Qiao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 18:27:55 PDT 2022


peixin added a comment.

This needs rebase.



================
Comment at: flang/lib/Lower/Bridge.cpp:203
     //    them.
     for (Fortran::lower::pft::Program::Units &u : pft.getUnits()) {
       std::visit(Fortran::common::visitors{
----------------
jpenix-quic wrote:
> 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!)
Yes.


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

https://reviews.llvm.org/D130513



More information about the cfe-commits mailing list