@@ -4674,10 +4674,11 @@ def ggdb3 : Flag<["-"], "ggdb3">, Group<ggdbN_Group>;
4674
4674
def glldb : Flag<["-"], "glldb">, Group<gTune_Group>;
4675
4675
def gsce : Flag<["-"], "gsce">, Group<gTune_Group>;
4676
4676
def gdbx : Flag<["-"], "gdbx">, Group<gTune_Group>;
4677
+
4678
+ let Visibility = [ClangOption, CLOption, DXCOption, FlangOption] in {
4677
4679
// Equivalent to our default dwarf version. Forces usual dwarf emission when
4678
4680
// CodeView is enabled.
4679
4681
def gdwarf : Flag<["-"], "gdwarf">, Group<g_Group>,
4680
- Visibility<[ClangOption, CLOption, DXCOption]>,
4681
4682
HelpText<"Generate source-level debug information with the default dwarf version">;
4682
4683
def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>,
4683
4684
HelpText<"Generate source-level debug information with dwarf version 2">;
@@ -4687,6 +4688,7 @@ def gdwarf_4 : Flag<["-"], "gdwarf-4">, Group<g_Group>,
4687
4688
HelpText<"Generate source-level debug information with dwarf version 4">;
4688
4689
def gdwarf_5 : Flag<["-"], "gdwarf-5">, Group<g_Group>,
4689
4690
HelpText<"Generate source-level debug information with dwarf version 5">;
4691
+ }
4690
4692
def gdwarf64 : Flag<["-"], "gdwarf64">, Group<g_Group>,
4691
4693
Visibility<[ClangOption, CC1Option, CC1AsOption]>,
4692
4694
HelpText<"Enables DWARF64 format for ELF binaries, if debug information emission is enabled.">,
@@ -7626,6 +7628,8 @@ def debug_info_kind_EQ : Joined<["-"], "debug-info-kind=">;
7626
7628
def record_command_line : Separate<["-"], "record-command-line">,
7627
7629
HelpText<"The string to embed in the .LLVM.command.line section.">,
7628
7630
MarshallingInfoString<CodeGenOpts<"RecordCommandLine">>;
7631
+ def dwarf_version_EQ : Joined<["-"], "dwarf-version=">,
7632
+ MarshallingInfoInt<CodeGenOpts<"DwarfVersion">>;
7629
7633
7630
7634
} // let Visibility = [CC1Option, CC1AsOption, FC1Option]
7631
7635
@@ -7637,8 +7641,6 @@ def debug_info_macro : Flag<["-"], "debug-info-macro">,
7637
7641
def default_function_attr : Separate<["-"], "default-function-attr">,
7638
7642
HelpText<"Apply given attribute to all functions">,
7639
7643
MarshallingInfoStringVector<CodeGenOpts<"DefaultFunctionAttrs">>;
7640
- def dwarf_version_EQ : Joined<["-"], "dwarf-version=">,
7641
- MarshallingInfoInt<CodeGenOpts<"DwarfVersion">>;
7642
7644
def debugger_tuning_EQ : Joined<["-"], "debugger-tuning=">,
7643
7645
Values<"gdb,lldb,sce,dbx">,
7644
7646
NormalizedValuesScope<"llvm::DebuggerKind">, NormalizedValues<["GDB", "LLDB", "SCE", "DBX"]>,
0 commit comments