Skip to content

Commit 1de2a05

Browse files
committed
DebugInfo: Accept -gdwarf even in clang-cl
Fixes regression introduced by llvmorg-10-init-8908-g098d901bd1b
1 parent 098d901 commit 1de2a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ def glldb : Flag<["-"], "glldb">, Group<gTune_Group>;
19741974
def gsce : Flag<["-"], "gsce">, Group<gTune_Group>;
19751975
// Equivalent to our default dwarf version. Forces usual dwarf emission when
19761976
// CodeView is enabled.
1977-
def gdwarf : Flag<["-"], "gdwarf">, Group<g_Group>,
1977+
def gdwarf : Flag<["-"], "gdwarf">, Group<g_Group>, Flags<[CoreOption]>,
19781978
HelpText<"Generate source-level debug information with the default dwarf version">;
19791979
def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group<g_Group>,
19801980
HelpText<"Generate source-level debug information with dwarf version 2">;

0 commit comments

Comments
 (0)