[flang-commits] [flang] [flang][runtime] Added pseudo file unit for simplified PRINT. (PR #86134)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu Mar 21 08:58:36 PDT 2024


klausler wrote:

> > Could this code be structured so that unit.cpp isn't even compiled for the device?
> 
> Yes, I can extract the common parts (e.g. lines 367-1070) into a separate file, e.g. `unit-common.cpp`, and split the methods that have different implementations into `unit.cpp` and `unit-pseudo.cpp`. Does it sound okay?

Or move `unit.cpp` to `external-unit.cpp`, since the runtime already has `internal-unit.cpp`.

https://github.com/llvm/llvm-project/pull/86134


More information about the flang-commits mailing list