summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-12-03 15:41:10 +0000
committerdim <dim@FreeBSD.org>2015-12-03 15:41:10 +0000
commita65c3363cc9e11b3bb4cf0971a2c70969739110e (patch)
tree25299558aec086fc2d6ba7796f45550d543926f9
parente5fb4876d3d6327c2672d5c68eaccff5862c1b47 (diff)
downloadFreeBSD-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.cpp2
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,
OpenPOWER on IntegriCloud