diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2018-03-20 15:37:15 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2018-03-20 15:37:15 +0000 |
commit | 3f8e03ebb0cf341a09e86cd0b8b8484ca99e9f87 (patch) | |
tree | 32c946cedf941f29ff701f4654adff744693e1dd | |
parent | 4519ac3791135eb9c207f0684f4236dbc13ac83f (diff) |
[Kaleidoscope] doc fix
This fixes the compile command of the example in Chapter 2.
Differential Revision: https://reviews.llvm.org/D43196
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327989 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/tutorial/LangImpl02.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorial/LangImpl02.rst b/docs/tutorial/LangImpl02.rst index d72c8dc9add..9f8fd6cee53 100644 --- a/docs/tutorial/LangImpl02.rst +++ b/docs/tutorial/LangImpl02.rst @@ -716,15 +716,15 @@ Intermediate Representation (IR) from the AST. Full Code Listing ================= -Here is the complete code listing for this and the previous chapter. -Note that it is fully self-contained: you don't need LLVM or any -external libraries at all for this. (Besides the C and C++ standard -libraries, of course.) To build this, just compile with: +Here is the complete code listing for our running example. Because this +uses the LLVM libraries, we need to link them in. To do this, we use the +`llvm-config <http://llvm.org/cmds/llvm-config.html>`_ tool to inform +our makefile/command line about which options to use: .. code-block:: bash # Compile - clang++ -g -O3 toy.cpp + clang++ -g -O3 toy.cpp `llvm-config --cxxflags` # Run ./a.out |