diff options
author | Fangrui Song <i@maskray.me> | 2023-06-16 08:32:25 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-06-16 08:32:25 -0700 |
commit | a79995ca6004082774a87f7a58ab6be5343364b7 (patch) | |
tree | 24428a84116e48afcf421e5b47d4666b4e207081 /llvm/lib/Transforms/Utils/ASanStackFrameLayout.cpp | |
parent | ec77747fbdca901e0fded58f940dae62e0f6b726 (diff) | |
download | llvm-a79995ca6004082774a87f7a58ab6be5343364b7.zip llvm-a79995ca6004082774a87f7a58ab6be5343364b7.tar.gz llvm-a79995ca6004082774a87f7a58ab6be5343364b7.tar.bz2 |
[Driver] Allow warning for unclaimed TargetSpecific options
For unclaimed target-agnostic options, we can apply clang_ignored_gcc_optimization_f_Group
to accept but warn about them.
```
% clang -c -fexpensive-optimizations a.c
clang: warning: optimization flag '-fexpensive-optimizations' is not supported [-Wignored-optimization-argument]
```
For an unclaimed target-specific option, one target may want to accept but warn
about it. Add `llvm::opt::Arg::IgnoredTargetSpecific` to support this warning
need.
Close https://github.com/llvm/llvm-project/issues/63282
Reviewed By: mstorsjo
Differential Revision: https://reviews.llvm.org/D152856
Diffstat (limited to 'llvm/lib/Transforms/Utils/ASanStackFrameLayout.cpp')
0 files changed, 0 insertions, 0 deletions