diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-25 05:49:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-25 05:49:54 +0000 |
commit | 9c7db4a209b74f1ca88b6670258749bf90af86dc (patch) | |
tree | 5d25c99eff6423cd6544870993c589b132675d99 /lib/Driver | |
parent | 584be45eb9f20231e7cdc372c607d46d07b101a9 (diff) |
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
Diffstat (limited to 'lib/Driver')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |