don't yet understand where this is happening in llvm-gcc).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70012
91177308-0d34-0410-b5e6-
96231b3b80d8
// < 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");