Skip to content

Commit f73f5af

Browse files
[Driver] Refactor option '-mlink-bitcode-file'. (#125322)
Associate '-mlink-bitcode-file' as both CC1 and FC1 option. Fixes https://gitlab.e4s.io/uo-public/llvm-openmp-offloading-v2/-/jobs/360327
1 parent 1eac7cd commit f73f5af

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7302,6 +7302,9 @@ let Visibility = [CC1Option, FC1Option] in {
73027302
def mlink_builtin_bitcode : Separate<["-"], "mlink-builtin-bitcode">,
73037303
HelpText<"Link and internalize needed symbols from the given bitcode file "
73047304
"before performing optimizations.">;
7305+
def mlink_bitcode_file
7306+
: Separate<["-"], "mlink-bitcode-file">,
7307+
HelpText<"Link the given bitcode file before performing optimizations.">;
73057308
} // let Visibility = [CC1Option, FC1Option]
73067309

73077310
let Visibility = [CC1Option] in {
@@ -7405,14 +7408,13 @@ def msmall_data_limit : Separate<["-"], "msmall-data-limit">,
74057408
def funwind_tables_EQ : Joined<["-"], "funwind-tables=">,
74067409
HelpText<"Generate unwinding tables for all functions">,
74077410
MarshallingInfoInt<CodeGenOpts<"UnwindTables">>;
7408-
defm constructor_aliases : BoolMOption<"constructor-aliases",
7409-
CodeGenOpts<"CXXCtorDtorAliases">, DefaultFalse,
7410-
PosFlag<SetTrue, [], [ClangOption], "Enable">,
7411-
NegFlag<SetFalse, [], [ClangOption], "Disable">,
7412-
BothFlags<[], [ClangOption, CC1Option],
7413-
" emitting complete constructors and destructors as aliases when possible">>;
7414-
def mlink_bitcode_file : Separate<["-"], "mlink-bitcode-file">,
7415-
HelpText<"Link the given bitcode file before performing optimizations.">;
7411+
defm constructor_aliases
7412+
: BoolMOption<"constructor-aliases", CodeGenOpts<"CXXCtorDtorAliases">,
7413+
DefaultFalse, PosFlag<SetTrue, [], [ClangOption], "Enable">,
7414+
NegFlag<SetFalse, [], [ClangOption], "Disable">,
7415+
BothFlags<[], [ClangOption, CC1Option],
7416+
" emitting complete constructors and destructors "
7417+
"as aliases when possible">>;
74167418
defm link_builtin_bitcode_postopt: BoolMOption<"link-builtin-bitcode-postopt",
74177419
CodeGenOpts<"LinkBitcodePostopt">, DefaultFalse,
74187420
PosFlag<SetTrue, [], [ClangOption], "Link builtin bitcodes after the "

0 commit comments

Comments
 (0)