summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorDouglas Katzman <dougk@google.com>2015-08-05 18:03:47 +0000
committerDouglas Katzman <dougk@google.com>2015-08-05 18:03:47 +0000
commit8b50e0175f99bef03c0f6b7b6f014f657a6bd5a1 (patch)
treebc78f03fb57d0fc2190324c83344ad91ccd28789 /clang/lib/Driver/Tools.cpp
parent405e4f90519fb6c11246ed2698b6049682601227 (diff)
downloadbcm5719-llvm-8b50e0175f99bef03c0f6b7b6f014f657a6bd5a1.tar.gz
bcm5719-llvm-8b50e0175f99bef03c0f6b7b6f014f657a6bd5a1.zip
Claim arguments that belong to 'clang_ignored_gcc_optimization_f_Group'
This seems preferable to printing two warnings per unsupported option- one warning about not supporting it, and one about not using it. It also makes the '-Wno-' option do what you mean. Differential Revision: http://reviews.llvm.org/D11766 llvm-svn: 244079
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 2135b77f5e6..043d9958b3c 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -3848,6 +3848,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
for (const Arg *A :
Args.filtered(options::OPT_clang_ignored_gcc_optimization_f_Group)) {
D.Diag(diag::warn_ignored_gcc_optimization) << A->getAsString(Args);
+ A->claim();
}
claimNoWarnArgs(Args);
OpenPOWER on IntegriCloud