[cfe-commits] r70012 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Fri Apr 24 22:49:54 PDT 2009
Author: ddunbar
Date: Sat Apr 25 00:49:54 2009
New Revision: 70012
URL: http://llvm.org/viewvc/llvm-project?rev=70012&view=rev
Log:
Driver: -mkernel disables default use of unwind tables (although I
don't yet understand where this is happening in llvm-gcc).
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=70012&r1=70011&r2=70012&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sat Apr 25 00:49:54 2009
@@ -301,7 +301,8 @@
// < 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");
More information about the cfe-commits
mailing list