12 changes: 6 additions & 6 deletions docs/tutorial/LangImpl8.rst → docs/tutorial/LangImpl09.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ Kaleidoscope: Adding Debug Information
.. contents::
:local:

Chapter 8 Introduction
Chapter 9 Introduction
======================

Welcome to Chapter 8 of the "`Implementing a language with
LLVM <index.html>`_" tutorial. In chapters 1 through 7, we've built a
Welcome to Chapter 9 of the "`Implementing a language with
LLVM <index.html>`_" tutorial. In chapters 1 through 8, we've built a
decent little programming language with functions and variables.
What happens if something goes wrong though, how do you debug your
program?
Expand Down Expand Up @@ -149,7 +149,7 @@ command line:

.. code-block:: bash
Kaleidoscope-Ch8 < fib.ks | & clang -x ir -
Kaleidoscope-Ch9 < fib.ks | & clang -x ir -
which gives an a.out/a.exe in the current working directory.

Expand Down Expand Up @@ -455,8 +455,8 @@ debug information. To build this example, use:
Here is the code:

.. literalinclude:: ../../examples/Kaleidoscope/Chapter8/toy.cpp
.. literalinclude:: ../../examples/Kaleidoscope/Chapter9/toy.cpp
:language: c++

`Next: Conclusion and other useful LLVM tidbits <LangImpl9.html>`_
`Next: Conclusion and other useful LLVM tidbits <LangImpl10.html>`_

File renamed without changes.
2 changes: 1 addition & 1 deletion docs/tutorial/OCamlLangImpl5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ IR into "t.ll" and run "``llvm-as < t.ll | opt -analyze -view-cfg``", `a
window will pop up <../ProgrammersManual.html#viewing-graphs-while-debugging-code>`_ and you'll
see this graph:

.. figure:: LangImpl5-cfg.png
.. figure:: LangImpl05-cfg.png
:align: center
:alt: Example CFG

Expand Down
6 changes: 1 addition & 5 deletions examples/Kaleidoscope/Chapter8/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
Object
Support
native
all
)

add_kaleidoscope_chapter(Kaleidoscope-Ch8
Expand Down
416 changes: 93 additions & 323 deletions examples/Kaleidoscope/Chapter8/toy.cpp

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions examples/Kaleidoscope/Chapter9/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
set(LLVM_LINK_COMPONENTS
Core
ExecutionEngine
Object
Support
native
)

add_kaleidoscope_chapter(Kaleidoscope-Ch9
toy.cpp
)

export_executable_symbols(Kaleidoscope-Ch9)
1,445 changes: 1,445 additions & 0 deletions examples/Kaleidoscope/Chapter9/toy.cpp

Large diffs are not rendered by default.