[clang] 562bc30 - [Driver] Improve help message for -ffixed-xX flags

Simon Cook via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 10 03:38:45 PDT 2020


Author: Simon Cook
Date: 2020-04-10T11:30:24+01:00
New Revision: 562bc307c03de86dc083a019f358cd36c48488b0

URL: https://github.com/llvm/llvm-project/commit/562bc307c03de86dc083a019f358cd36c48488b0
DIFF: https://github.com/llvm/llvm-project/commit/562bc307c03de86dc083a019f358cd36c48488b0.diff

LOG: [Driver] Improve help message for -ffixed-xX flags

This improves the message by adding the missing 'x' prefix in register
names, such that the messages say for example 'Reserve the x10 register',
instead of 'Reserve the 10 register'.

Added: 
    

Modified: 
    clang/include/clang/Driver/Options.td

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 5becd52dae80..02875f68ebfe 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -2374,7 +2374,7 @@ def mno_fix_cortex_a53_835769 : Flag<["-"], "mno-fix-cortex-a53-835769">,
   HelpText<"Don't workaround Cortex-A53 erratum 835769 (AArch64 only)">;
 foreach i = {1-31} in
   def ffixed_x#i : Flag<["-"], "ffixed-x"#i>, Group<m_Group>,
-    HelpText<"Reserve the "#i#" register (AArch64/RISC-V only)">;
+    HelpText<"Reserve the x"#i#" register (AArch64/RISC-V only)">;
 
 foreach i = {8-15,18} in
   def fcall_saved_x#i : Flag<["-"], "fcall-saved-x"#i>, Group<m_aarch64_Features_Group>,


        


More information about the cfe-commits mailing list