Debug Info: set default to gdwarf-2 for Darwin.
authorManman Ren <mren@apple.com>
Tue, 2 Jul 2013 23:15:25 +0000 (23:15 +0000)
committerManman Ren <mren@apple.com>
Tue, 2 Jul 2013 23:15:25 +0000 (23:15 +0000)
commit38db092083ba69af5b3fa60532798a9bc34f91b7
tree0c30269f1b904ba32faa04bdb660de2a300d6b19
parent9046f94271ec88efa5e26fe3df0b917b74daa037
Debug Info: set default to gdwarf-2 for Darwin.

Darwin systems currently do not support dwarf version 3 or above. When we are
ready, we can bump the default to gdwarf-4 for Darwin.

For other systems, the default is dwarf version 3, if everything goes smoothly,
we can bump the version to 4.

rdar://13591116

llvm-svn: 185483
clang/lib/Driver/Tools.cpp
clang/test/CodeGen/dwarf-version.c
clang/test/Driver/clang-g-opts.c
clang/test/Driver/debug-options.c