[all-commits] [llvm/llvm-project] 56e3e3: [clang] Remove -g[no-]-* bool flags from g_Group (...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Oct 10 15:49:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 56e3e30cebfd40853e57639e9f2e5672e5f4124f
      https://github.com/llvm/llvm-project/commit/56e3e30cebfd40853e57639e9f2e5672e5f4124f
  Author: Reid Kleckner <rnk at google.com>
  Date:   2025-10-10 (Fri, 10 Oct 2025)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/DebugInfo/KeyInstructions/flag.cpp
    M clang/test/Driver/debug-options.c

  Log Message:
  -----------
  [clang] Remove -g[no-]-* bool flags from g_Group (#162750)

There are four uses of BoolGOption, and all of them are essentially debug
info feature flags, which I believe should not the enablement or
disablement of all debug info emission. `OPT_g_group` is used to control
the debug info level here:

https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Clang.cpp#L4387

This doesn't cause any test failures, and seems like the right behavior
for all four flags:
* -g[no-]flag-base
* -g[no-]inline-line-tables
* -g[no-]key-instructions
* -g[no-]structor-decl-linkage-names

None of these, even in the positive form, should enable debug info
emission.

Fixes #162747



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list