Skip to content

Commit 1721404

Browse files
committed
[Driver] Remove unneeded RenderAsInput flag
RenderAsInput is for -Wa,/-Wl, style options which forward their values as used by llvm::opt::Arg::renderAsInput. These short options don't use RenderAsInput.
1 parent bdfe986 commit 1721404

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def Xopenmp_target : Separate<["-"], "Xopenmp-target">, Group<CompileOnly_Group>
830830
def Xopenmp_target_EQ : JoinedAndSeparate<["-"], "Xopenmp-target=">, Group<CompileOnly_Group>,
831831
HelpText<"Pass <arg> to the target offloading toolchain identified by <triple>.">,
832832
MetaVarName<"<triple> <arg>">;
833-
def z : Separate<["-"], "z">, Flags<[LinkerInput, RenderAsInput]>,
833+
def z : Separate<["-"], "z">, Flags<[LinkerInput]>,
834834
HelpText<"Pass -z <arg> to the linker">, MetaVarName<"<arg>">,
835835
Group<Link_Group>;
836836
def offload_link : Flag<["--", "-"], "offload-link">, Group<Link_Group>,
@@ -855,8 +855,8 @@ def autocomplete : Joined<["--"], "autocomplete=">;
855855
def bind__at__load : Flag<["-"], "bind_at_load">;
856856
def bundle__loader : Separate<["-"], "bundle_loader">;
857857
def bundle : Flag<["-"], "bundle">;
858-
def b : JoinedOrSeparate<["-"], "b">, Flags<[LinkerInput, RenderAsInput]>,
859-
HelpText<"Pass -b <arg> to the linker on AIX (only).">, MetaVarName<"<arg>">,
858+
def b : JoinedOrSeparate<["-"], "b">, Flags<[LinkerInput]>,
859+
HelpText<"Pass -b <arg> to the linker on AIX">, MetaVarName<"<arg>">,
860860
Group<Link_Group>;
861861
// OpenCL-only Options
862862
def cl_opt_disable : Flag<["-"], "cl-opt-disable">, Group<opencl_Group>, Flags<[CC1Option]>,
@@ -4065,7 +4065,7 @@ def nostdincxx : Flag<["-"], "nostdinc++">, Flags<[CC1Option]>,
40654065
def nostdlib : Flag<["-"], "nostdlib">, Group<Link_Group>;
40664066
def nostdlibxx : Flag<["-"], "nostdlib++">;
40674067
def object : Flag<["-"], "object">;
4068-
def o : JoinedOrSeparate<["-"], "o">, Flags<[NoXarchOption, RenderAsInput,
4068+
def o : JoinedOrSeparate<["-"], "o">, Flags<[NoXarchOption,
40694069
CC1Option, CC1AsOption, FC1Option, FlangOption]>,
40704070
HelpText<"Write output to <file>">, MetaVarName<"<file>">,
40714071
MarshallingInfoString<FrontendOpts<"OutputFile">>;

0 commit comments

Comments
 (0)