From 1de2a05701e73f8ef5914c2f6ea2dcbe617ce18b Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 1 Nov 2019 15:36:15 -0700 Subject: [PATCH] DebugInfo: Accept -gdwarf even in clang-cl Fixes regression introduced by llvmorg-10-init-8908-g098d901bd1b --- clang/include/clang/Driver/Options.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 44259a2a..722427bc 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -1974,7 +1974,7 @@ def glldb : Flag<["-"], "glldb">, Group; def gsce : Flag<["-"], "gsce">, Group; // Equivalent to our default dwarf version. Forces usual dwarf emission when // CodeView is enabled. -def gdwarf : Flag<["-"], "gdwarf">, Group, +def gdwarf : Flag<["-"], "gdwarf">, Group, Flags<[CoreOption]>, HelpText<"Generate source-level debug information with the default dwarf version">; def gdwarf_2 : Flag<["-"], "gdwarf-2">, Group, HelpText<"Generate source-level debug information with dwarf version 2">; -- 2.7.4