llvm.org GIT mirror llvm / ebdeca7
Small documentation update. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60045 91177308-0d34-0410-b5e6-96231b3b80d8 Mikhail Glushenkov 11 years ago
2 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4040 extensions). If you want to force files ending with ".c" to compile as
4141 C++, use the ``-x`` option, just like you would do it with ``gcc``::
4242
43 $ llvmc2 -x c hello.cpp
44 $ # hello.cpp is really a C file
43 $ # hello.c is really a C++ file
44 $ llvmc2 -x c++ hello.c
4545 $ ./a.out
4646 hello
4747
360360 no meaning in the context of ``OptionList``, so the only properties
361361 allowed there are ``help`` and ``required``.
362362
363 Option lists are used at the file scope. See file
363 Option lists are used at file scope. See the file
364364 ``plugins/Clang/Clang.td`` for an example of ``OptionList`` usage.
365365
366366 .. _hooks:
2222 $ ./a.out
2323 hello
2424
25 For further help on command-line LLVMC usage, refer to the ``llvmc
26 --help`` output.
25 This will invoke ``llvm-g++`` under the hood (you can see which
26 commands are executed by using the ``-v`` option). For further help on
27 command-line LLVMC usage, refer to the ``llvmc --help`` output.
28
2729
2830 Using LLVMC to generate toolchain drivers
2931 =========================================
5052 Contents of the file ``Simple.td`` look like this::
5153
5254 // Include common definitions
53 include "Common.td"
55 include "llvm/CompilerDriver/Common.td"
5456
5557 // Tool descriptions
5658 def gcc : Tool<