View | Details | Raw Unified | Return to bug 234887
Collapse All | Expand All

(-)contrib/llvm/tools/clang/lib/Driver/ToolChains/FreeBSD.h (-1 / +1 lines)
Lines 70-76 Link Here
70
      const llvm::opt::ArgList &Args) const override;
70
      const llvm::opt::ArgList &Args) const override;
71
  bool isPIEDefault() const override;
71
  bool isPIEDefault() const override;
72
  SanitizerMask getSupportedSanitizers() const override;
72
  SanitizerMask getSupportedSanitizers() const override;
73
  unsigned GetDefaultDwarfVersion() const override { return 2; }
73
  unsigned GetDefaultDwarfVersion() const override;
74
  // Until dtrace (via CTF) and LLDB can deal with distributed debug info,
74
  // Until dtrace (via CTF) and LLDB can deal with distributed debug info,
75
  // FreeBSD defaults to standalone/full debug info.
75
  // FreeBSD defaults to standalone/full debug info.
76
  bool GetDefaultStandaloneDebug() const override { return true; }
76
  bool GetDefaultStandaloneDebug() const override { return true; }
(-)contrib/llvm/tools/clang/lib/Driver/ToolChains/FreeBSD.cpp (+7 lines)
Lines 330-335 Link Here
330
  return ToolChain::CST_Libstdcxx;
330
  return ToolChain::CST_Libstdcxx;
331
}
331
}
332
332
333
unsigned FreeBSD::GetDefaultDwarfVersion() const {
334
  // Default to use DWARF 2 before FreeBSD 12.
335
  if (getTriple().getOSMajorVersion() < 12)
336
    return 2;
337
  return 4;
338
}
339
333
void FreeBSD::addLibStdCxxIncludePaths(
340
void FreeBSD::addLibStdCxxIncludePaths(
334
    const llvm::opt::ArgList &DriverArgs,
341
    const llvm::opt::ArgList &DriverArgs,
335
    llvm::opt::ArgStringList &CC1Args) const {
342
    llvm::opt::ArgStringList &CC1Args) const {

Return to bug 234887