summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-01-15 02:04:54 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-01-15 02:04:54 +0000
commitbf78b20490f69c1c55794641bd1d5312200eb406 (patch)
treef45b9e786ba9c431dd5772b9919f8309feeba6e7 /llvm/tools/llvmc
parentbef9fc224029c77e3cc26beb412a124c7605ddee (diff)
downloadbcm5719-llvm-bf78b20490f69c1c55794641bd1d5312200eb406.tar.gz
bcm5719-llvm-bf78b20490f69c1c55794641bd1d5312200eb406.zip
Clarify the documentation a bit.
llvm-svn: 62249
Diffstat (limited to 'llvm/tools/llvmc')
-rw-r--r--llvm/tools/llvmc/doc/LLVMC-Reference.rst17
1 files changed, 11 insertions, 6 deletions
diff --git a/llvm/tools/llvmc/doc/LLVMC-Reference.rst b/llvm/tools/llvmc/doc/LLVMC-Reference.rst
index 1c0da181892..e28def74d5e 100644
--- a/llvm/tools/llvmc/doc/LLVMC-Reference.rst
+++ b/llvm/tools/llvmc/doc/LLVMC-Reference.rst
@@ -262,16 +262,21 @@ separate option groups syntactically.
* Possible option types:
- - ``switch_option`` - a simple boolean switch, for example ``-time``.
+ - ``switch_option`` - a simple boolean switch without arguments,
+ for example ``-O2`` or ``-time``.
- - ``parameter_option`` - option that takes an argument, for example
- ``-std=c99``;
+ - ``parameter_option`` - option that takes one argument, for
+ example ``-std=c99``. It is also allowed to use spaces instead of
+ the equality sign: ``-std c99``.
- ``parameter_list_option`` - same as the above, but more than one
- occurence of the option is allowed.
+ option occurence is allowed.
- - ``prefix_option`` - same as the parameter_option, but the option name
- and parameter value are not separated.
+ - ``prefix_option`` - same as the parameter_option, but the option
+ name and argument do not have to be separated. Example:
+ ``-ofile``. This can be also specified as ``-o file``; however,
+ ``-o=file`` will be parsed incorrectly (``=file`` will be
+ interpreted as option value).
- ``prefix_list_option`` - same as the above, but more than one
occurence of the option is allowed; example: ``-lm -lpthread``.
OpenPOWER on IntegriCloud