diff options
author | dim <dim@FreeBSD.org> | 2014-04-11 16:51:35 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-04-11 16:51:35 +0000 |
commit | 134a8ae0443c21eff9d1b2d5592f8c594e2a622c (patch) | |
tree | 3fd321f6397d34fad27fea405fa41e1eb7663d90 /contrib/llvm/tools/clang/lib | |
parent | f59574f34342073102fe6cad8b533846631f3c8d (diff) | |
download | FreeBSD-src-134a8ae0443c21eff9d1b2d5592f8c594e2a622c.zip FreeBSD-src-134a8ae0443c21eff9d1b2d5592f8c594e2a622c.tar.gz |
Amend r263891, by making clang default to DWARF2 debug info format for
all FreeBSD versions, not just 10.x and earlier. Apparently too many
people seem to have trouble with post-1993 formats.
Also remove the related notes about messing with kernel configuration
files from UPDATING, which are now superfluous.
Requested by: many
MFC after: 3 days
Diffstat (limited to 'contrib/llvm/tools/clang/lib')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Driver/Tools.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm/tools/clang/lib/Driver/Tools.cpp b/contrib/llvm/tools/clang/lib/Driver/Tools.cpp index 35f2df1..ceea404 100644 --- a/contrib/llvm/tools/clang/lib/Driver/Tools.cpp +++ b/contrib/llvm/tools/clang/lib/Driver/Tools.cpp @@ -2635,10 +2635,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-gdwarf-4"); else if (!A->getOption().matches(options::OPT_g0) && !A->getOption().matches(options::OPT_ggdb0)) { - // Default is dwarf-2 for darwin and FreeBSD <= 10. + // Default is dwarf-2 for darwin and FreeBSD. const llvm::Triple &Triple = getToolChain().getTriple(); - if (Triple.isOSDarwin() || (Triple.getOS() == llvm::Triple::FreeBSD && - Triple.getOSMajorVersion() <= 10)) + if (Triple.isOSDarwin() || Triple.getOS() == llvm::Triple::FreeBSD) CmdArgs.push_back("-gdwarf-2"); else CmdArgs.push_back("-g"); |