From 8971fe2b89793ea2c1c969882a539a04485c780c Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 14 Dec 2022 15:58:02 -0800 Subject: [PATCH] [RISCV] Remove Group from mcmodel_EQ_medlow/mcmodel_EQ_medany. NFCI As far as I can tell m_riscv_Features_Group is for options that can be passed to cc1's -target-feature. These mcmodel aliases aren't that. I think they get treated as aliases and disappear before we get to processing m_riscv_Features_Group so it didn't cause any problems. I've left them in m_Group to match mcmodel_EQ. --- clang/include/clang/Driver/Options.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index df664bf110c96..312a2d1df1dbe 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -3543,10 +3543,10 @@ def msave_restore : Flag<["-"], "msave-restore">, Group, HelpText<"Enable using library calls for save and restore">; def mno_save_restore : Flag<["-"], "mno-save-restore">, Group, HelpText<"Disable using library calls for save and restore">; -def mcmodel_EQ_medlow : Flag<["-"], "mcmodel=medlow">, Group, +def mcmodel_EQ_medlow : Flag<["-"], "mcmodel=medlow">, Group, Flags<[CC1Option]>, Alias, AliasArgs<["small"]>, HelpText<"Equivalent to -mcmodel=small, compatible with RISC-V gcc.">; -def mcmodel_EQ_medany : Flag<["-"], "mcmodel=medany">, Group, +def mcmodel_EQ_medany : Flag<["-"], "mcmodel=medany">, Group, Flags<[CC1Option]>, Alias, AliasArgs<["medium"]>, HelpText<"Equivalent to -mcmodel=medium, compatible with RISC-V gcc.">; def menable_experimental_extensions : Flag<["-"], "menable-experimental-extensions">, Group,