summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-03 16:10:12 +0000
committerEric Christopher <echristo@gmail.com>2013-09-03 16:10:12 +0000
commit617f4c5796b36017695b787a305bb42b93c5e4cf (patch)
treee312de5478f765874ce882240cd8492c738cdc17 /lib/Frontend/CompilerInvocation.cpp
parentf2adae3c1c51e6ad9700b3744af52f0bf2e53d2e (diff)
downloadclang-617f4c5796b36017695b787a305bb42b93c5e4cf.tar.gz
clang-617f4c5796b36017695b787a305bb42b93c5e4cf.tar.bz2
clang-617f4c5796b36017695b787a305bb42b93c5e4cf.tar.xz
Attempt to migrate default dwarf version to 4 for linux.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 819ed4b135..7e21f55c76 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/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);