forked from OSchip/llvm-project
[Driver] Add negative option for -fkeep-static-consts
This commit is contained in:
parent
a462561cee
commit
ac47588bc4
|
@ -988,8 +988,7 @@ def fsignaling_math : Flag<["-"], "fsignaling-math">, Group<f_Group>;
|
|||
def fno_signaling_math : Flag<["-"], "fno-signaling-math">, Group<f_Group>;
|
||||
defm jump_tables : OptOutFFlag<"jump-tables", "Use", "Do not use", " jump tables for lowering switches">;
|
||||
defm force_enable_int128 : OptInFFlag<"force-enable-int128", "Enable", "Disable", " support for int128_t type">;
|
||||
def fkeep_static_consts : Flag<["-"], "fkeep-static-consts">, Group<f_Group>, Flags<[CC1Option]>,
|
||||
HelpText<"Keep static const variables even if unused">;
|
||||
defm keep_static_consts : OptInFFlag<"keep-static-consts", "Keep", "Don't keep", " static const variables if unused", [DriverOption]>;
|
||||
def ffixed_point : Flag<["-"], "ffixed-point">, Group<f_Group>,
|
||||
Flags<[CC1Option]>, HelpText<"Enable fixed point types">;
|
||||
def fno_fixed_point : Flag<["-"], "fno-fixed-point">, Group<f_Group>,
|
||||
|
|
|
@ -5175,7 +5175,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
Args.AddLastArg(CmdArgs, options::OPT_fno_operator_names);
|
||||
Args.AddLastArg(CmdArgs, options::OPT_femulated_tls,
|
||||
options::OPT_fno_emulated_tls);
|
||||
Args.AddLastArg(CmdArgs, options::OPT_fkeep_static_consts);
|
||||
|
||||
// AltiVec-like language extensions aren't relevant for assembling.
|
||||
if (!isa<PreprocessJobAction>(JA) || Output.getType() != types::TY_PP_Asm)
|
||||
|
@ -6118,6 +6117,10 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-fforce-enable-int128");
|
||||
}
|
||||
|
||||
if (Args.hasFlag(options::OPT_fkeep_static_consts,
|
||||
options::OPT_fno_keep_static_consts, false))
|
||||
CmdArgs.push_back("-fkeep-static-consts");
|
||||
|
||||
if (Args.hasFlag(options::OPT_fcomplete_member_pointers,
|
||||
options::OPT_fno_complete_member_pointers, false))
|
||||
CmdArgs.push_back("-fcomplete-member-pointers");
|
||||
|
|
Loading…
Reference in New Issue