[cfe-commits] r113541 - /cfe/trunk/lib/Driver/Tools.cpp
Daniel Dunbar
daniel at zuster.org
Thu Sep 9 14:17:44 PDT 2010
Author: ddunbar
Date: Thu Sep 9 16:17:44 2010
New Revision: 113541
URL: http://llvm.org/viewvc/llvm-project?rev=113541&view=rev
Log:
Driver: Mark function as nounwind when -mkernel or -fapple-kext is present.
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=113541&r1=113540&r2=113541&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Sep 9 16:17:44 2010
@@ -1184,7 +1184,8 @@
CmdArgs.push_back("-fno-access-control");
// -fexceptions=0 is default.
- if (needsExceptions(Args, InputType, getToolChain().getTriple()))
+ if (!KernelOrKext &&
+ needsExceptions(Args, InputType, getToolChain().getTriple()))
CmdArgs.push_back("-fexceptions");
if (getToolChain().UseSjLjExceptions())
More information about the cfe-commits
mailing list