From 562bc307c03de86dc083a019f358cd36c48488b0 Mon Sep 17 00:00:00 2001 From: Simon Cook Date: Fri, 10 Apr 2020 11:30:24 +0100 Subject: [PATCH] [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'. --- clang/include/clang/Driver/Options.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, - 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,