[llvm-commits] [llvm] r62249 - in /llvm/trunk: docs/CompilerDriver.html tools/llvmc/doc/LLVMC-Reference.rst

Mikhail Glushenkov foldr at codedgers.com
Wed Jan 14 18:04:56 PST 2009


Author: foldr
Date: Wed Jan 14 20:04:54 2009
New Revision: 62249

URL: http://llvm.org/viewvc/llvm-project?rev=62249&view=rev
Log:
Clarify the documentation a bit.

Modified:
    llvm/trunk/docs/CompilerDriver.html
    llvm/trunk/tools/llvmc/doc/LLVMC-Reference.rst

Modified: llvm/trunk/docs/CompilerDriver.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CompilerDriver.html?rev=62249&r1=62248&r2=62249&view=diff

==============================================================================
--- llvm/trunk/docs/CompilerDriver.html (original)
+++ llvm/trunk/docs/CompilerDriver.html Wed Jan 14 20:04:54 2009
@@ -263,13 +263,18 @@
 <li><p class="first">Possible option types:</p>
 <blockquote>
 <ul class="simple">
-<li><tt class="docutils literal"><span class="pre">switch_option</span></tt> - a simple boolean switch, for example <tt class="docutils literal"><span class="pre">-time</span></tt>.</li>
-<li><tt class="docutils literal"><span class="pre">parameter_option</span></tt> - option that takes an argument, for example
-<tt class="docutils literal"><span class="pre">-std=c99</span></tt>;</li>
+<li><tt class="docutils literal"><span class="pre">switch_option</span></tt> - a simple boolean switch without arguments,
+for example <tt class="docutils literal"><span class="pre">-O2</span></tt> or <tt class="docutils literal"><span class="pre">-time</span></tt>.</li>
+<li><tt class="docutils literal"><span class="pre">parameter_option</span></tt> - option that takes one argument, for
+example <tt class="docutils literal"><span class="pre">-std=c99</span></tt>. It is also allowed to use spaces instead of
+the equality sign: <tt class="docutils literal"><span class="pre">-std</span> <span class="pre">c99</span></tt>.</li>
 <li><tt class="docutils literal"><span class="pre">parameter_list_option</span></tt> - same as the above, but more than one
-occurence of the option is allowed.</li>
-<li><tt class="docutils literal"><span class="pre">prefix_option</span></tt> - same as the parameter_option, but the option name
-and parameter value are not separated.</li>
+option occurence is allowed.</li>
+<li><tt class="docutils literal"><span class="pre">prefix_option</span></tt> - same as the parameter_option, but the option
+name and argument do not have to be separated. Example:
+<tt class="docutils literal"><span class="pre">-ofile</span></tt>. This can be also specified as <tt class="docutils literal"><span class="pre">-o</span> <span class="pre">file</span></tt>; however,
+<tt class="docutils literal"><span class="pre">-o=file</span></tt> will be parsed incorrectly (<tt class="docutils literal"><span class="pre">=file</span></tt> will be
+interpreted as option value).</li>
 <li><tt class="docutils literal"><span class="pre">prefix_list_option</span></tt> - same as the above, but more than one
 occurence of the option is allowed; example: <tt class="docutils literal"><span class="pre">-lm</span> <span class="pre">-lpthread</span></tt>.</li>
 <li><tt class="docutils literal"><span class="pre">alias_option</span></tt> - a special option type for creating
@@ -588,7 +593,7 @@
 <a href="mailto:foldr at codedgers.com">Mikhail Glushenkov</a><br />
 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br />
 
-Last modified: $Date$
+Last modified: $Date: 2008-12-11 11:34:48 -0600 (Thu, 11 Dec 2008) $
 </address></div>
 </div>
 </div>

Modified: llvm/trunk/tools/llvmc/doc/LLVMC-Reference.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/doc/LLVMC-Reference.rst?rev=62249&r1=62248&r2=62249&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc/doc/LLVMC-Reference.rst (original)
+++ llvm/trunk/tools/llvmc/doc/LLVMC-Reference.rst Wed Jan 14 20:04:54 2009
@@ -262,16 +262,21 @@
 
 * 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``.





More information about the llvm-commits mailing list