[clang] [KeyInstr][Clang] Add Clang option -g[no-]key-instructions (PR #134627)
Orlando Cazalet-Hyams via cfe-commits
cfe-commits at lists.llvm.org
Wed May 14 10:13:11 PDT 2025
================
@@ -4767,6 +4767,13 @@ renderDebugOptions(const ToolChain &TC, const Driver &D, const llvm::Triple &T,
CmdArgs.push_back("-gembed-source");
}
+ if (Args.hasFlag(options::OPT_gkey_instructions,
+ options::OPT_gno_key_instructions, false)) {
+ CmdArgs.push_back("-gkey-instructions");
----------------
OCHyams wrote:
We can ditch the `-mllvm` soon as it was mostly a convenience for development. I don't have a pull request yet that implements the necessary changes but plan to soon (such changes will necessary for bitcode handling, so that's not a nebulous soon).
It would be preferable to me if we can keep it temporarily (land this as is), if that's not a problem.
https://github.com/llvm/llvm-project/pull/134627
More information about the cfe-commits
mailing list