From 08198168873ff2d1ba7ec27dd2b75c3b901257b3 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Tue, 3 Sep 2013 16:10:12 +0000 Subject: Attempt to migrate default dwarf version to 4 for linux. llvm-svn: 189823 --- clang/lib/Frontend/CompilerInvocation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Frontend') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 819ed4b135c..7e21f55c76c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -334,8 +334,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, else if (Args.hasArg(OPT_gdwarf_4)) Opts.DwarfVersion = 4; else if (Opts.getDebugInfo() != CodeGenOptions::NoDebugInfo) - // Default Dwarf version is 3 if we are generating debug information. - Opts.DwarfVersion = 3; + // Default Dwarf version is 4 if we are generating debug information. + Opts.DwarfVersion = 4; Opts.DisableLLVMOpts = Args.hasArg(OPT_disable_llvm_optzns); Opts.DisableRedZone = Args.hasArg(OPT_disable_red_zone); -- cgit v1.2.3