llvm-6502/tools/llvmc2
Mikhail Glushenkov e43228958c 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
2008-05-30 06:26:08 +00:00
..
doc Documentation update. 2008-05-30 06:25:24 +00:00
examples New feature: OptionList. 2008-05-30 06:26:08 +00:00
Action.cpp Rename StringVector to StrVector (to be consistent with LLVMCConfigurationEmitter.cpp). 2008-05-30 06:17:29 +00:00
Action.h Rename StringVector to StrVector (to be consistent with LLVMCConfigurationEmitter.cpp). 2008-05-30 06:17:29 +00:00
AutoGenerated.cpp Make it possible to test if the '-o' option is provided. 2008-05-30 06:24:07 +00:00
AutoGenerated.h Fix some headers. 2008-05-30 06:20:54 +00:00
Common.td New feature: OptionList. 2008-05-30 06:26:08 +00:00
CompilationGraph.cpp A small optimization: use static char* array instead of StrVector. 2008-05-30 06:24:49 +00:00
CompilationGraph.h New tests for the 'case' expression: not_empty, in_language. 2008-05-30 06:19:52 +00:00
Error.h Fix some error messages; Make LLVMC pass through the exit code of a failed tool. 2008-05-12 16:31:42 +00:00
Graph.td Fix some headers. 2008-05-30 06:20:54 +00:00
llvmc.cpp Fix some headers. 2008-05-30 06:20:54 +00:00
Makefile Update documentation, add examples. 2008-05-30 06:14:42 +00:00
Tool.h A small optimization: use static char* array instead of StrVector. 2008-05-30 06:24:49 +00:00
Tools.td New tests for the 'case' expression: not_empty, in_language. 2008-05-30 06:19:52 +00:00