diff options
author | dim <dim@FreeBSD.org> | 2014-04-14 17:54:01 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-04-14 17:54:01 +0000 |
commit | 7c6a94336ace64b6e2f21d3865b84758bb94d935 (patch) | |
tree | b1e0cdee0d7850b872a6b460889a24a0a248ed06 /contrib/llvm/tools | |
parent | d9b0a628da4b486dde00400305ad3a2ecefa0205 (diff) | |
download | FreeBSD-src-7c6a94336ace64b6e2f21d3865b84758bb94d935.zip FreeBSD-src-7c6a94336ace64b6e2f21d3865b84758bb94d935.tar.gz |
MFC r264345:
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
Diffstat (limited to 'contrib/llvm/tools')
-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 e5d6ec2..9576542 100644 --- a/contrib/llvm/tools/clang/lib/Driver/Tools.cpp +++ b/contrib/llvm/tools/clang/lib/Driver/Tools.cpp @@ -2628,10 +2628,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"); |