diff options
| author | Ed Maste <emaste@freebsd.org> | 2014-05-08 13:01:26 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@freebsd.org> | 2014-05-08 13:01:26 +0000 |
| commit | 79145ae268cb8ecdf8b20efe9e9f546f90b504aa (patch) | |
| tree | 5539b99b0039578b088c42eeab633a1075eb6a0d /lib/Frontend/CompilerInvocation.cpp | |
| parent | e7d788bd1c1dbe2ae77ad43a5696507abc3bb644 (diff) | |
| download | clang-79145ae268cb8ecdf8b20efe9e9f546f90b504aa.tar.gz clang-79145ae268cb8ecdf8b20efe9e9f546f90b504aa.tar.bz2 clang-79145ae268cb8ecdf8b20efe9e9f546f90b504aa.tar.xz | |
Enable standalone-debug by default on FreeBSD
It was set by default on Darwin in r198655. The same usability issues
with DTrace and LLDB apply to FreeBSD, so set it by default there too.
rdar://problem/15758808
http://llvm.org/pr19676
Differential Revision: http://reviews.llvm.org/D3448
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
| -rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index a6b1b458e7..076572e750 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -337,9 +337,10 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, } else if (Args.hasArg(OPT_g_Flag) || Args.hasArg(OPT_gdwarf_2) || Args.hasArg(OPT_gdwarf_3) || Args.hasArg(OPT_gdwarf_4)) { bool Default = false; - // Until dtrace (via CTF) can deal with distributed debug info, - // Darwin defaults to standalone/full debug info. - if (llvm::Triple(TargetOpts.Triple).isOSDarwin()) + // Until dtrace (via CTF) and LLDB can deal with distributed debug info, + // Darwin and FreeBSD default to standalone/full debug info. + if (llvm::Triple(TargetOpts.Triple).isOSDarwin() || + llvm::Triple(TargetOpts.Triple).isOSFreeBSD()) Default = true; if (Args.hasFlag(OPT_fstandalone_debug, OPT_fno_standalone_debug, Default)) |
