From: Sjoerd Meijer Date: Tue, 20 Mar 2018 15:37:15 +0000 (+0000) Subject: [Kaleidoscope] doc fix X-Git-Tag: llvmorg-7.0.0-rc1~10157 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c77e5d0dfad745d045c9f382e807a454eed2eff7;p=platform%2Fupstream%2Fllvm.git [Kaleidoscope] doc fix This fixes the compile command of the example in Chapter 2. Differential Revision: https://reviews.llvm.org/D43196 llvm-svn: 327989 --- diff --git a/llvm/docs/tutorial/LangImpl02.rst b/llvm/docs/tutorial/LangImpl02.rst index d72c8dc..9f8fd6c 100644 --- a/llvm/docs/tutorial/LangImpl02.rst +++ b/llvm/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 `_ 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