From d0e3a15e36830d0fe6049eb0543f0af5a2e1ad12 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Tue, 4 May 2021 14:27:40 +0200 Subject: [PATCH] [clang][cli] NFC: Remove confusing `EmptyKPM` variable --- clang/include/clang/Driver/Options.td | 6 +++--- llvm/include/llvm/Option/OptParser.td | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 56e8b76..2825fba 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -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, - NegFlag>; +def fgpu_sanitize : Flag<["-"], "fgpu-sanitize">, Group, + HelpText<"Enable sanitizer for AMDGPU target">; +def fno_gpu_sanitize : Flag<["-"], "fno-gpu-sanitize">, 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. " diff --git a/llvm/include/llvm/Option/OptParser.td b/llvm/include/llvm/Option/OptParser.td index 45f092a..ad0c1eb 100644 --- a/llvm/include/llvm/Option/OptParser.td +++ b/llvm/include/llvm/Option/OptParser.td @@ -152,8 +152,6 @@ class KeyPathAndMacro; - class ImpliedByAnyOf key_paths, code value = "true"> { code ImpliedCheck = !foldl("false", key_paths, accumulator, key_path, !strconcat(accumulator, " || ", key_path)); -- 2.7.4