]> granicus.if.org Git - clang/commitdiff
Driver: -mkernel disables default use of unwind tables (although I
authorDaniel Dunbar <daniel@zuster.org>
Sat, 25 Apr 2009 05:49:54 +0000 (05:49 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 25 Apr 2009 05:49:54 +0000 (05:49 +0000)
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

lib/Driver/Tools.cpp

index 8ff8197e8eea576d9de8654b8e912e2f1fa03e08..e180543d53108ea81da5ec8e53c4e47637189850 100644 (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");