diff options
author | Justin Bogner <mail@justinbogner.com> | 2023-08-02 16:02:44 -0700 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2023-08-15 13:05:44 -0700 |
commit | 0db9dfb19329b7fcb33394cf7b46805abeef3548 (patch) | |
tree | af88f90c775575be97dd1844c08b793c73837e09 /llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp | |
parent | 04da7490d85dab7f2f97d0a782b674088bc5a10f (diff) | |
download | llvm-0db9dfb19329b7fcb33394cf7b46805abeef3548.zip llvm-0db9dfb19329b7fcb33394cf7b46805abeef3548.tar.gz llvm-0db9dfb19329b7fcb33394cf7b46805abeef3548.tar.bz2 |
[Driver] Update BoolOption to handle Visibility. NFC
This updates the BoolOption family of option definitions to do the
right thing with llvm::opt::Visibility. The only meaningful visibility
at this point is llvm::opt::DefaultVis - in the interest of clarity we
add an alias for this called "ClangOption" and update PosFlag,
NegFlag, and BothFlags definitions to specify that.
The updates to option definitions were done with the following three
sed scripts (one to update Pos/NegFlag, one for BothFlags, and one
that just cleans up whitespace a little):
sed -E 's/((Pos|Neg)Flag<[A-Za-z]*, \[[^]]*\])(, "|>|,$)/\1, [ClangOption]\3/g'
sed -E 's/(BothFlags<\[[^]]*\])(, ")/\1, [ClangOption], "/'
sed -E 's/( *)((Pos|Neg)Flag<.*), ((Pos|Neg)Flag)/\1\2,\n\1\4/'
These are idempotent and should be runnable on downstream versions of
Options.td if needed to update any additional flags that are present.
Differential Revision: https://reviews.llvm.org/D157150
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions