From 05d816d0e263802349fc175c94654e67bab01dd8 Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Fri, 24 Jan 2014 15:15:27 +0000 Subject: [PATCH] [AArch64] Replace underscores with dashes in -mgeneral_regs_only. This should now match the equivalent gcc option. llvm-svn: 200008 --- clang/docs/UsersManual.rst | 2 +- clang/include/clang/Driver/Options.td | 2 +- clang/test/Driver/aarch64-mgeneral_regs_only.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 15ae86a56417..4ca8435c368c 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/docs/UsersManual.rst @@ -1061,7 +1061,7 @@ are listed below. CRC instructions are enabled by default on ARMv8. -.. option:: -mgeneral_regs_only +.. option:: -mgeneral-regs-only Generate code which only uses the general purpose registers. diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index b40a9f7d39c5..25a1d12848a1 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -1054,7 +1054,7 @@ def mcrc : Flag<["-"], "mcrc">, Group, def mnocrc : Flag<["-"], "mnocrc">, Group, HelpText<"Disallow use of CRC instructions (ARM only)">; -def mgeneral_regs_only : Flag<["-"], "mgeneral_regs_only">, Group, +def mgeneral_regs_only : Flag<["-"], "mgeneral-regs-only">, Group, HelpText<"Generate code which only uses the general purpose registers (AArch64 only)">; def mvsx : Flag<["-"], "mvsx">, Group; diff --git a/clang/test/Driver/aarch64-mgeneral_regs_only.c b/clang/test/Driver/aarch64-mgeneral_regs_only.c index 026f98c33193..28cdd08d531c 100644 --- a/clang/test/Driver/aarch64-mgeneral_regs_only.c +++ b/clang/test/Driver/aarch64-mgeneral_regs_only.c @@ -1,6 +1,6 @@ -// Test the -mgeneral_regs_only option +// Test the -mgeneral-regs-only option -// RUN: %clang -target aarch64-linux-eabi -mgeneral_regs_only %s -### 2>&1 \ +// RUN: %clang -target aarch64-linux-eabi -mgeneral-regs-only %s -### 2>&1 \ // RUN: | FileCheck --check-prefix=CHECK-NO-FP %s // CHECK-NO-FP: "-target-feature" "-fp-armv8" // CHECK-NO-FP: "-target-feature" "-crypto"