[PATCH] D96864: [flang][driver] Add -Xflang and make -test-io a frontend-only flang

Andrzej Warzynski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 17 06:22:15 PST 2021


awarzynski created this revision.
Herald added a reviewer: sscalpone.
Herald added subscribers: jansvoboda11, dang.
awarzynski requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch adds support for `-Xflang` in `flang-new`. The semantics are
identical to `-Xclang`.

With the addition of `-Xflang`, we can modify `-test-io` to be a
compiler-frontend only flag. This makes more sense, this flag is:

- very frontend specific
- to be used for development and testing only
- not to be exposed to the end user

Originally we added it to the compiler driver, `flang-new`, in order to
facilitate testing. With `-Xflang` this is no longer needed. Tests are
updated accordingly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96864

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Flang.cpp
  clang/lib/Driver/Types.cpp
  flang/test/Flang-Driver/driver-help-hidden.f90
  flang/test/Flang-Driver/driver-help.f90
  flang/test/Frontend/input-output-file.f90
  flang/test/Frontend/multiple-input-files.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96864.324287.patch
Type: text/x-patch
Size: 8637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210217/98d3663e/attachment-0001.bin>


More information about the cfe-commits mailing list