Driver: -mkernel disables default use of unwind tables (although I

don't yet understand where this is happening in llvm-gcc).

llvm-svn: 70012
This commit is contained in:
Daniel Dunbar 2009-04-25 05:49:54 +00:00
parent 3f863f6827
commit 68f1d8ed0c
1 changed files with 2 additions and 1 deletions
clang/lib/Driver

View File

@ -301,7 +301,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// < 3)
if (Args.hasFlag(options::OPT_funwind_tables,
options::OPT_fno_unwind_tables,
getToolChain().IsUnwindTablesDefault()))
(getToolChain().IsUnwindTablesDefault() &&
!Args.hasArg(options::OPT_mkernel))))
CmdArgs.push_back("--unwind-tables=1");
else
CmdArgs.push_back("--unwind-tables=0");