Don't claim exception related arguments when looking at RTTIMode
authorFilipe Cabecinhas <me@filcab.net>
Fri, 20 Mar 2015 23:33:23 +0000 (23:33 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Fri, 20 Mar 2015 23:33:23 +0000 (23:33 +0000)
commit3e707d98eeb2c4af2f2ee473c97ee5adc954ec66
treee34d1e845243d75573cf4d6d4935cd0bee66a853
parent008067aca9a49a13de3851bfae571a8a4e191b76
Don't claim exception related arguments when looking at RTTIMode

Summary:
We were claiming the -f*exceptions arguments when looking for the
RTTIMode. This makes us not warn about unused arguments if compiling a C
file with -fcxx-exceptions.

This patch fixes it by not claiming the exception-related arguments at
that point.

Reviewers: rsmith, samsonov

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D8507

llvm-svn: 232860
clang/lib/Driver/ToolChain.cpp
clang/test/Driver/rtti-options.cpp