[Driver] Mark m_x86_Features_Group options as TargetSpecific
authorFangrui Song <i@maskray.me>
Mon, 12 Jun 2023 19:47:33 +0000 (12:47 -0700)
committerFangrui Song <i@maskray.me>
Mon, 12 Jun 2023 19:47:33 +0000 (12:47 -0700)
commit1d6c3e29f6aa45914faa7be00a939b8f550f38e9
tree053484e51cf20eccd3c300aed16cc8353744d882
parentce4bb083c043d42474cd071bd5149dc5fd4430f6
[Driver] Mark m_x86_Features_Group options as TargetSpecific

so that they get an error on non-x86 targets.
Follow-up to D151590.

As a workaround for https://github.com/llvm/llvm-project/issues/63270, we don't
report an error for -msse4.2.
clang/include/clang/Driver/Options.td
clang/test/Driver/x86-target-features.c