diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-06-16 00:13:52 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-06-16 00:13:52 +0000 |
commit | bf5085251a6000dff5b2a0b40376c835e72c08a8 (patch) | |
tree | 648bf96b40bcde458db2f4b42d9b3acd670c4a15 /llvm/tools/llvmc/doc/LLVMC-Tutorial.rst | |
parent | 49ffbb73ce28c2cc5a8a37e34f36ae199748f227 (diff) | |
download | bcm5719-llvm-bf5085251a6000dff5b2a0b40376c835e72c08a8.tar.gz bcm5719-llvm-bf5085251a6000dff5b2a0b40376c835e72c08a8.zip |
Documentation update.
llvm-svn: 73448
Diffstat (limited to 'llvm/tools/llvmc/doc/LLVMC-Tutorial.rst')
-rw-r--r-- | llvm/tools/llvmc/doc/LLVMC-Tutorial.rst | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst b/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst index 6f064778424..f7eb30e48ab 100644 --- a/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst +++ b/llvm/tools/llvmc/doc/LLVMC-Tutorial.rst @@ -48,21 +48,25 @@ be familiar with it to get anything done. .. _TableGen: http://llvm.cs.uiuc.edu/docs/TableGenFundamentals.html -Start by compiling ``plugins/Simple/Simple.td``, which is a primitive -wrapper for ``gcc``:: +Start by compiling ``example/Simple``, which is a primitive wrapper for +``gcc``:: $ cd $LLVM_DIR/tools/llvmc - $ make DRIVER_NAME=mygcc BUILTIN_PLUGINS=Simple + + # NB: A less verbose way to compile standalone LLVMC-based drivers is + # described in the reference manual. + + $ make LLVMC_BASED_DRIVER_NAME=mygcc LLVMC_BUILTIN_PLUGINS=Simple $ cat > hello.c [...] $ mygcc hello.c $ ./hello.out Hello -Here we link our plugin with the LLVMC core statically to form an -executable file called ``mygcc``. It is also possible to build our -plugin as a standalone dynamic library; this is described in the -reference manual. +Here we link our plugin with the LLVMC core statically to form an executable +file called ``mygcc``. It is also possible to build our plugin as a dynamic +library to be loaded by the ``llvmc`` executable (or any other LLVMC-based +standalone driver); this is described in the reference manual. Contents of the file ``Simple.td`` look like this:: |