[clang][cli] Look up program action argument in a table
authorJan Svoboda <jan_svoboda@apple.com>
Tue, 9 Feb 2021 14:20:09 +0000 (15:20 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Tue, 9 Feb 2021 14:29:33 +0000 (15:29 +0100)
commit7369bfb8abb6f62eebd045b8b243972863bf3190
tree97a62f54aaf3c8c91a270345b7337024203850b2
parent23cd8d51ad519261137a40a5bbac6e537ee7ba25
[clang][cli] Look up program action argument in a table

This patch extracts the mapping between command line option and frontend::ActionKind into a table. The table can be reused when parsing and also generating command line options.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D96269
clang/lib/Frontend/CompilerInvocation.cpp