[PATCH] clang: add -f{no-,}integrate-as aliases
Saleem Abdulrasool
compnerd at compnerd.org
Thu Feb 20 21:27:55 PST 2014
Hi nlewycky, rafael, chandlerc,
The integrated assembler is a feature. Since the existing name has been
released, provide proper flags as aliases.
http://llvm-reviews.chandlerc.com/D2853
Files:
include/clang/Driver/Options.td
test/Driver/integrated-as.c
Index: include/clang/Driver/Options.td
===================================================================
--- include/clang/Driver/Options.td
+++ include/clang/Driver/Options.td
@@ -1327,6 +1327,11 @@
MetaVarName<"<language>">;
def y : Joined<["-"], "y">;
+def : Flag<["-"], "fintegrated-as">, Alias<integrated_as>, Group<f_Group>,
+ HelpText<"Enable the integrated assembler">;
+def : Flag<["-"], "fno-integrated-as">, Alias<no_integrated_as>, Group<f_Group>,
+ HelpText<"Disable the integrated assembler">;
+
def working_directory : JoinedOrSeparate<["-"], "working-directory">, Flags<[CC1Option]>,
HelpText<"Resolve file paths relative to the specified directory">;
def working_directory_EQ : Joined<["-"], "working-directory=">, Flags<[CC1Option]>,
Index: test/Driver/integrated-as.c
===================================================================
--- test/Driver/integrated-as.c
+++ test/Driver/integrated-as.c
@@ -3,6 +3,17 @@
// CHECK: cc1as
// CHECK: -mrelax-all
+// RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS
+
+// FIAS: cc1as
+
+// RUN: %clang -### -fno-integrated-as -S %s 2>&1 \
+// RUN: | FileCheck %s -check-prefix NOFIAS
+
+// NOFIAS-NOT: cc1as
+// NOFIAS: -cc1
+// NOFIAS: -no-integrated-as
+
// RUN: %clang -### -c -integrated-as -Wa,-compress-debug-sections -Wno-missing-debug-compression %s 2>&1 | FileCheck --check-prefix=COMPRESS_DEBUG_QUIET %s
// COMPRESS_DEBUG_QUIET-NOT: warning: DWARF compression is not implemented
// COMPRESS_DEBUG_QUIET-NOT: warning: argument unused during compilation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2853.1.patch
Type: text/x-patch
Size: 1598 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140220/a8831576/attachment.bin>
More information about the cfe-commits
mailing list