[llvm-commits] [llvm] r60045 - in /llvm/trunk/tools/llvmc2/doc: LLVMC-Reference.rst LLVMC-Tutorial.rst

Mikhail Glushenkov foldr at codedgers.com
Tue Nov 25 13:34:29 PST 2008


Author: foldr
Date: Tue Nov 25 15:34:29 2008
New Revision: 60045

URL: http://llvm.org/viewvc/llvm-project?rev=60045&view=rev
Log:
Small documentation update.

Modified:
    llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst
    llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst

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

==============================================================================
--- llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst (original)
+++ llvm/trunk/tools/llvmc2/doc/LLVMC-Reference.rst Tue Nov 25 15:34:29 2008
@@ -41,8 +41,8 @@
 extensions). If you want to force files ending with ".c" to compile as
 C++, use the ``-x`` option, just like you would do it with ``gcc``::
 
-      $ llvmc2 -x c hello.cpp
-      $ # hello.cpp is really a C file
+      $ # hello.c is really a C++ file
+      $ llvmc2 -x c++ hello.c
       $ ./a.out
       hello
 
@@ -361,7 +361,7 @@
 no meaning in the context of ``OptionList``, so the only properties
 allowed there are ``help`` and ``required``.
 
-Option lists are used at the file scope. See file
+Option lists are used at file scope. See the file
 ``plugins/Clang/Clang.td`` for an example of ``OptionList`` usage.
 
 .. _hooks:

Modified: llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst?rev=60045&r1=60044&r2=60045&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst (original)
+++ llvm/trunk/tools/llvmc2/doc/LLVMC-Tutorial.rst Tue Nov 25 15:34:29 2008
@@ -23,8 +23,10 @@
      $ ./a.out
      hello
 
-For further help on command-line LLVMC usage, refer to the ``llvmc
---help`` output.
+This will invoke ``llvm-g++`` under the hood (you can see which
+commands are executed by using the ``-v`` option). For further help on
+command-line LLVMC usage, refer to the ``llvmc --help`` output.
+
 
 Using LLVMC to generate toolchain drivers
 =========================================
@@ -51,7 +53,7 @@
 Contents of the file ``Simple.td`` look like this::
 
     // Include common definitions
-    include "Common.td"
+    include "llvm/CompilerDriver/Common.td"
 
     // Tool descriptions
     def gcc : Tool<





More information about the llvm-commits mailing list