From 47243aeb89ae9a3cd836f8a6eb429a607a114a43 Mon Sep 17 00:00:00 2001 From: Nicole Aschenbrenner Date: Tue, 24 Oct 2023 11:18:12 -0400 Subject: [PATCH] [OpenMP][Driver] Adds --opaque-offload-linker option to Clang options Fixes visibility for --opaque-offload-linker and --no-opaque-offload-linker to be visible Clang and CC1 option. Removes necessity of specifying option after -Xclang Change-Id: I5c724dc8389d079ba80330b24686917630e9e3ea --- clang/include/clang/Driver/Options.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index fa3efd7375820f..4987c2e0769012 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -3467,9 +3467,9 @@ defm openmp_optimistic_collapse : BoolFOption<"openmp-optimistic-collapse", NegFlag, BothFlags<[NoArgumentUnused, HelpHidden], []>>; def static_openmp: Flag<["-"], "static-openmp">, HelpText<"Use the static host OpenMP runtime while linking.">; -def opaque_offload_linker : Flag<["--"], "opaque-offload-linker">, Visibility<[CC1Option]>, Group, +def opaque_offload_linker : Flag<["--"], "opaque-offload-linker">, Visibility<[ClangOption, CC1Option]>, Group, HelpText<"Build/link omp offload binary, construct opaque cmd list instead of single clang-linker-wrapper cmd.">; -def no_opaque_offload_linker : Flag<["--"], "no-opaque-offload-linker">, Visibility<[CC1Option]>, Group, +def no_opaque_offload_linker : Flag<["--"], "no-opaque-offload-linker">, Visibility<[ClangOption, CC1Option]>, Group, HelpText<"Build/link omp offload binary, using single clang-linker-wrapper cmd.">; def fopenmp_new_driver : Flag<["-"], "fopenmp-new-driver">, Flags<[HelpHidden]>, HelpText<"Use the new driver for OpenMP offloading.">;