r189823 - Attempt to migrate default dwarf version to 4 for linux.
Eric Christopher
echristo at gmail.com
Tue Sep 3 09:10:12 PDT 2013
Author: echristo
Date: Tue Sep 3 11:10:12 2013
New Revision: 189823
URL: http://llvm.org/viewvc/llvm-project?rev=189823&view=rev
Log:
Attempt to migrate default dwarf version to 4 for linux.
Modified:
cfe/trunk/lib/Frontend/CompilerInvocation.cpp
cfe/trunk/test/CodeGen/dwarf-version.c
Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=189823&r1=189822&r2=189823&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Tue Sep 3 11:10:12 2013
@@ -334,8 +334,8 @@ static bool ParseCodeGenArgs(CodeGenOpti
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);
Modified: cfe/trunk/test/CodeGen/dwarf-version.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/dwarf-version.c?rev=189823&r1=189822&r2=189823&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/dwarf-version.c (original)
+++ cfe/trunk/test/CodeGen/dwarf-version.c Tue Sep 3 11:10:12 2013
@@ -10,5 +10,5 @@ int main (void) {
// CHECK: metadata !{i32 2, metadata !"Dwarf Version", i32 2}
// VER3: metadata !{i32 2, metadata !"Dwarf Version", i32 3}
// VER4: metadata !{i32 2, metadata !"Dwarf Version", i32 4}
-// LINUX: metadata !{i32 2, metadata !"Dwarf Version", i32 3}
+// LINUX: metadata !{i32 2, metadata !"Dwarf Version", i32 4}
// DARWIN: metadata !{i32 2, metadata !"Dwarf Version", i32 2}
More information about the cfe-commits
mailing list