Author: Fangrui Song Date: 2022-08-31T17:30:51-07:00 New Revision: 98615fd376cea15af21e120e0e3ffa5ba68c2b6d
URL: https://github.com/llvm/llvm-project/commit/98615fd376cea15af21e120e0e3ffa5ba68c2b6d DIFF: https://github.com/llvm/llvm-project/commit/98615fd376cea15af21e120e0e3ffa5ba68c2b6d.diff LOG: [Driver] Remove Joined -X The untested option triggers an IgnoredGCCCompat warning while GCC reports an error. We support a few -X{assembler,linker,...}. Having the Joined -X may make typos unnoticed. 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 2b284b405e61c..0967fea650e41 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -843,7 +843,6 @@ def Xoffload_linker : JoinedAndSeparate<["-"], "Xoffload-linker">, def Xpreprocessor : Separate<["-"], "Xpreprocessor">, Group<Preprocessor_Group>, HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">; def X_Flag : Flag<["-"], "X">, Group<Link_Group>; -def X_Joined : Joined<["-"], "X">, IgnoredGCCCompat; def Z_Flag : Flag<["-"], "Z">, Group<Link_Group>; // FIXME: All we do with this is reject it. Remove. def Z_Joined : Joined<["-"], "Z">; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits