diff options
author | Gonsolo <gonsolo@gmail.com> | 2024-01-13 05:48:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 20:48:43 -0800 |
commit | 33aaad94279e5e2b7ab413786abdde48e3486ad9 (patch) | |
tree | 1c08366209343a38704c203f5adb0ee26fb5f9e2 /llvm/docs/tutorial/MyFirstLanguageFrontend | |
parent | 96b9b630348591ca112c8bae1eed550a4958448f (diff) | |
download | llvm-33aaad94279e5e2b7ab413786abdde48e3486ad9.zip llvm-33aaad94279e5e2b7ab413786abdde48e3486ad9.tar.gz llvm-33aaad94279e5e2b7ab413786abdde48e3486ad9.tar.bz2 |
[Kaleidoscope] LLVM is not needed for chapter two (#69823)
Since the example (llvm/examples/Kaleidoscope/Chapter2/toy.cpp) is
self-contained there is no need to use LLVM.
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r-- | llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst index 47d64ce..6aec05f 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst @@ -716,15 +716,12 @@ Intermediate Representation (IR) from the AST. Full Code Listing ================= -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 <https://llvm.org/cmds/llvm-config.html>`_ tool to inform -our makefile/command line about which options to use: +Here is the complete code listing for our running example. .. code-block:: bash # Compile - clang++ -g -O3 toy.cpp `llvm-config --cxxflags` + clang++ -g -O3 toy.cpp # Run ./a.out |