[PATCH] D136309: [clang][Toolchains][Gnu] pass -g through to assembler

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 20 10:15:22 PDT 2022


nickdesaulniers added a comment.

In D136309#3871599 <https://reviews.llvm.org/D136309#3871599>, @nickdesaulniers wrote:

> @MaskRay do you think I should make it so that `-g -g0` disables passing through `-g`?

Looks like this pattern can be used:

  if (const Arg *A = Args.getLastArg(options::OPT_g_Group)) {
    if (!A->getOption().matches(options::OPT_g0))


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136309



More information about the cfe-commits mailing list