From 9c7db4a209b74f1ca88b6670258749bf90af86dc Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 25 Apr 2009 05:49:54 +0000 Subject: Driver: -mkernel disables default use of unwind tables (although I 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Driver/Tools.cpp') diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 8ff8197e8e..e180543d53 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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"); -- cgit v1.2.3-70-g09d2