New feature: OptionList.
authorMikhail Glushenkov <foldr@codedgers.com>
Fri, 30 May 2008 06:26:08 +0000 (06:26 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Fri, 30 May 2008 06:26:08 +0000 (06:26 +0000)
commite43228958ce2d9c0c69c7ccaef8bb0517d085951
tree096fc172c497ac64dcb47e71f8b32b11c15296f1
parent270cae3bf818987d3079ba26ef3319960a034d25
New feature: OptionList.

It can be handy to have all information about options gathered in a single place
to provide an overview of all supported options. This patch allows the following:

def Options : OptionList<[
(switch_option "E", (help "Help string")),
(alias_option "quiet", "q")
...
]>;

Tool-specific option properties (like 'append_cmd') have (obviously) no meaning in
this context, so the only properties that are allowed are 'help' and 'required'.

See usage example in examples/Clang.td.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51754 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvmc2/Common.td
tools/llvmc2/examples/Clang.td
utils/TableGen/LLVMCConfigurationEmitter.cpp