[PATCH] D83648: [Driver] Fix integrated_as definition by setting it as a DriverOption

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 12 18:32:41 PDT 2020


dblaikie added a comment.

In D83648#2146472 <https://reviews.llvm.org/D83648#2146472>, @pzheng wrote:

> Actually, this patch won't change --help because it just reduced some duplication by extracting the common part (" the integrated assembler") of the help message into the "help" of "OptOutFFlag". Sorry for the confusion.
>
> The real fix here is to restore "integrated_as" as a DriverOption. Without this, when we have -fintegrated-as on a link line, it will be passed to the linker and cause the linker to fail because it is not a valid linker flag.


Sounds like that could be tested with a driver test (using -### to see what the linker command would be and validating that it doesn't include -fintegrated-as? - see other similar tests in clang/test/Driver, I think)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83648





More information about the cfe-commits mailing list