diff options
author | dim <dim@FreeBSD.org> | 2015-12-03 15:41:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-12-03 15:41:10 +0000 |
commit | a65c3363cc9e11b3bb4cf0971a2c70969739110e (patch) | |
tree | 25299558aec086fc2d6ba7796f45550d543926f9 | |
parent | e5fb4876d3d6327c2672d5c68eaccff5862c1b47 (diff) | |
download | FreeBSD-src-a65c3363cc9e11b3bb4cf0971a2c70969739110e.zip FreeBSD-src-a65c3363cc9e11b3bb4cf0971a2c70969739110e.tar.gz |
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
-rw-r--r-- | contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp b/contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp index fd0fbb4..9068ac1 100644 --- a/contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp +++ b/contrib/llvm/tools/clang/tools/driver/cc1as_main.cpp @@ -141,7 +141,7 @@ public: RelaxAll = 0; NoExecStack = 0; FatalWarnings = 0; - DwarfVersion = 3; + DwarfVersion = 2; } static bool CreateFromArgs(AssemblerInvocation &Res, |