[Driver] Remove ignored Flag form of -fauto-profile/-fprofile-sample-use
commitba7cc955662cfebb614c6a37a7341ba6072a0b70
authorFangrui Song <i@maskray.me>
Wed, 20 Nov 2024 17:06:32 +0000 (20 09:06 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 17:06:32 +0000 (20 09:06 -0800)
tree0863824a7d766dd4dc6f9f23754c6cbe265d625a
parentae023f3499dda3975e6379bc4c0a8d097ac18f60
[Driver] Remove ignored Flag form of -fauto-profile/-fprofile-sample-use

The Flag form options are accepted and silently ignored, which can be
surprising. The Eq form is supposed to be used instead, e.g.
-fprofile-sample-use=a.afdo.

Since we does not intend to support GCC's "fbaata.afdo" filename, just
remove the two options. While here, clean up code as -fauto-profile= is
an alias.

Pull Request: https://github.com/llvm/llvm-project/pull/113528
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/clang_f_opts.c
clang/test/Driver/fprofile-sample-use.c [new file with mode: 0644]