forked from OSchip/llvm-project
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:
parent
3f863f6827
commit
68f1d8ed0c
clang/lib/Driver
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue