[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.
This commit is contained in:
Fangrui Song 2022-08-31 17:30:51 -07:00
parent e0d3c10252
commit 98615fd376
1 changed files with 0 additions and 1 deletions

View File

@ -843,7 +843,6 @@ def Xoffload_linker : JoinedAndSeparate<["-"], "Xoffload-linker">,
def Xpreprocessor : Separate<["-"], "Xpreprocessor">, Group<Preprocessor_Group>, def Xpreprocessor : Separate<["-"], "Xpreprocessor">, Group<Preprocessor_Group>,
HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">; HelpText<"Pass <arg> to the preprocessor">, MetaVarName<"<arg>">;
def X_Flag : Flag<["-"], "X">, Group<Link_Group>; def X_Flag : Flag<["-"], "X">, Group<Link_Group>;
def X_Joined : Joined<["-"], "X">, IgnoredGCCCompat;
def Z_Flag : Flag<["-"], "Z">, Group<Link_Group>; def Z_Flag : Flag<["-"], "Z">, Group<Link_Group>;
// FIXME: All we do with this is reject it. Remove. // FIXME: All we do with this is reject it. Remove.
def Z_Joined : Joined<["-"], "Z">; def Z_Joined : Joined<["-"], "Z">;