forked from OSchip/llvm-project
[clang][cli] NFC: Remove confusing `EmptyKPM` variable
This commit is contained in:
parent
93537fabce
commit
d0e3a15e36
|
@ -971,9 +971,9 @@ def fgpu_inline_threshold_EQ : Joined<["-"], "fgpu-inline-threshold=">,
|
|||
def gpu_instrument_lib_EQ : Joined<["--"], "gpu-instrument-lib=">,
|
||||
HelpText<"Instrument device library for HIP, which is a LLVM bitcode containing "
|
||||
"__cyg_profile_func_enter and __cyg_profile_func_exit">;
|
||||
defm gpu_sanitize : BoolFOption<"gpu-sanitize", EmptyKPM, DefaultFalse,
|
||||
PosFlag<SetTrue, [], "Enable sanitizer for AMDGPU target">,
|
||||
NegFlag<SetFalse>>;
|
||||
def fgpu_sanitize : Flag<["-"], "fgpu-sanitize">, Group<f_Group>,
|
||||
HelpText<"Enable sanitizer for AMDGPU target">;
|
||||
def fno_gpu_sanitize : Flag<["-"], "fno-gpu-sanitize">, Group<f_Group>;
|
||||
def cuid_EQ : Joined<["-"], "cuid=">, Flags<[CC1Option]>,
|
||||
HelpText<"An ID for compilation unit, which should be the same for the same "
|
||||
"compilation unit but different for different compilation units. "
|
||||
|
|
|
@ -152,8 +152,6 @@ class KeyPathAndMacro<string key_path_prefix, string key_path_base,
|
|||
code MacroPrefix = macro_prefix;
|
||||
}
|
||||
|
||||
def EmptyKPM : KeyPathAndMacro<"", "">;
|
||||
|
||||
class ImpliedByAnyOf<list<string> key_paths, code value = "true"> {
|
||||
code ImpliedCheck = !foldl("false", key_paths, accumulator, key_path,
|
||||
!strconcat(accumulator, " || ", key_path));
|
||||
|
|
Loading…
Reference in New Issue