From 1491282165bfb87b15bd806ab53b3e9910ee7b29 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 2 Sep 2022 11:49:38 -0700 Subject: [PATCH] [clang] Change cc1 -fvisibility's canonical spelling to -fvisibility= --- clang/include/clang/Driver/Options.td | 13 ++++++------- clang/lib/Driver/ToolChains/AMDGPU.cpp | 3 +-- clang/lib/Driver/ToolChains/Clang.cpp | 18 ++++++------------ clang/lib/Driver/ToolChains/HIPAMD.cpp | 2 +- clang/lib/Driver/ToolChains/HIPSPV.cpp | 2 +- clang/test/CodeGenCXX/visibility-ms-compat.cpp | 2 +- clang/test/Driver/amdgpu-visibility.cl | 8 ++++---- clang/test/Driver/clang-translation.c | 3 +-- clang/test/Driver/hip-rdc-device-only.hip | 8 ++++---- clang/test/Driver/hip-toolchain-no-rdc.hip | 8 ++++---- clang/test/Driver/hip-toolchain-rdc-separate.hip | 4 ++-- clang/test/Driver/hip-toolchain-rdc.hip | 4 ++-- clang/test/Driver/hipspv-toolchain-rdc.hip | 4 ++-- clang/test/Driver/visibility.cpp | 16 ++++++++-------- clang/test/Driver/wasm-toolchain.c | 2 +- clang/test/Driver/wasm-toolchain.cpp | 2 +- 16 files changed, 45 insertions(+), 54 deletions(-) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 9949f90..6d08a27 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -2952,8 +2952,9 @@ def fvisibility_externs_nodllstorageclass_EQ : Joined<["-"], "fvisibility-extern HelpText<"The visibility for external declarations without an explicit DLL dllstorageclass [-fvisibility-from-dllstorageclass]">, MarshallingInfoVisibility, "HiddenVisibility">, ShouldParseIf; -def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group, - HelpText<"Set the default symbol visibility for all global definitions">, Values<"default,protected,internal,hidden">; +def fvisibility_EQ : Joined<["-"], "fvisibility=">, Group, Flags<[CC1Option]>, + HelpText<"Set the default symbol visibility for all global definitions">, + MarshallingInfoVisibility, "DefaultVisibility">; defm visibility_inlines_hidden : BoolFOption<"visibility-inlines-hidden", LangOpts<"InlineVisibilityHidden">, DefaultFalse, PosFlag