diff options
author | Filipe Cabecinhas <me@filcab.net> | 2015-03-20 23:33:23 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2015-03-20 23:33:23 +0000 |
commit | 3e707d98eeb2c4af2f2ee473c97ee5adc954ec66 (patch) | |
tree | e34d1e845243d75573cf4d6d4935cd0bee66a853 /clang/lib/Driver/ToolChain.cpp | |
parent | 008067aca9a49a13de3851bfae571a8a4e191b76 (diff) | |
download | llvm-3e707d98eeb2c4af2f2ee473c97ee5adc954ec66.zip llvm-3e707d98eeb2c4af2f2ee473c97ee5adc954ec66.tar.gz llvm-3e707d98eeb2c4af2f2ee473c97ee5adc954ec66.tar.bz2 |
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
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
-rw-r--r-- | clang/lib/Driver/ToolChain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp index d71b903..52e8603 100644 --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp @@ -48,7 +48,7 @@ static ToolChain::RTTIMode CalculateRTTIMode(const ArgList &Args, // On the PS4, turning on c++ exceptions turns on rtti. // We're assuming that, if we see -fexceptions, rtti gets turned on. - Arg *Exceptions = Args.getLastArg( + Arg *Exceptions = Args.getLastArgNoClaim( options::OPT_fcxx_exceptions, options::OPT_fno_cxx_exceptions, options::OPT_fexceptions, options::OPT_fno_exceptions); if (Exceptions && |