In assembler mode, clang defaulted to DWARF3, if only -g was specified.

Change this to DWARF2, in the simplest way possible.  (Upstream, this
was fixed in clang trunk r250173, but this was done along with a lot of
shuffling around of debug option handling, so it cannot be applied
as-is.)

Noticed by:	des
MFC after:	3 days
This commit is contained in:
Dimitry Andric 2015-12-03 15:41:10 +00:00
parent d96bef9c77
commit bde2a921d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291701

View File

@ -141,7 +141,7 @@ struct AssemblerInvocation {
RelaxAll = 0;
NoExecStack = 0;
FatalWarnings = 0;
DwarfVersion = 3;
DwarfVersion = 2;
}
static bool CreateFromArgs(AssemblerInvocation &Res,