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

llvm-svn: 208310
This commit is contained in:
Ed Maste
2014-05-08 13:01:26 +00:00
parent 6b008bf205
commit 279b97c130
2 changed files with 6 additions and 4 deletions

View File

@@ -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))