Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit c7efed6

Browse files
Fixup debug information references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227020 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 7f58cf3 commit c7efed6

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

docs/tutorial/LangImpl1.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ in the various pieces. The structure of the tutorial is:
7373
about this is how easy and trivial it is to construct SSA form in
7474
LLVM: no, LLVM does *not* require your front-end to construct SSA
7575
form!
76-
- `Chapter #8 <LangImpl8.html>`_: Conclusion and other useful LLVM
76+
- `Chapter #8 <LangImpl8.html>`_: Extending the Language: Debug
77+
Information - Having built a decent little programming language with
78+
control flow, functions and mutable variables, we consider what it
79+
takes to add debug information to standalone executables. This debug
80+
information will allow you to set breakpoints in Kaleidoscope
81+
functions, print out argument variables, and call functions - all
82+
from within the debugger!
83+
- `Chapter #9 <LangImpl8.html>`_: Conclusion and other useful LLVM
7784
tidbits - This chapter wraps up the series by talking about
7885
potential ways to extend the language, but also includes a bunch of
7986
pointers to info about "special topics" like adding garbage

docs/tutorial/LangImpl7.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -856,5 +856,5 @@ Here is the code:
856856
.. literalinclude:: ../../examples/Kaleidoscope/Chapter7/toy.cpp
857857
:language: c++
858858

859-
`Next: Conclusion and other useful LLVM tidbits <LangImpl8.html>`_
859+
`Next: Extending the Language: Debug Information <LangImpl8.html>`_
860860

docs/tutorial/LangImpl9.rst

+4-9
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ grown our little Kaleidoscope language from being a useless toy, to
1414
being a semi-interesting (but probably still useless) toy. :)
1515

1616
It is interesting to see how far we've come, and how little code it has
17-
taken. We built the entire lexer, parser, AST, code generator, and an
18-
interactive run-loop (with a JIT!) by-hand in under 1000 lines of
19-
(non-comment/non-blank) code.
17+
taken. We built the entire lexer, parser, AST, code generator, an
18+
interactive run-loop (with a JIT!), and emitted debug information in
19+
standalone executables - all in under 1000 lines of (non-comment/non-blank)
20+
code.
2021

2122
Our little language supports a couple of interesting features: it
2223
supports user defined binary and unary operators, it uses JIT
@@ -68,12 +69,6 @@ For example, try adding:
6869
collection, note that LLVM fully supports `Accurate Garbage
6970
Collection <../GarbageCollection.html>`_ including algorithms that
7071
move objects and need to scan/update the stack.
71-
- **debugger support** - LLVM supports generation of `DWARF Debug
72-
info <../SourceLevelDebugging.html>`_ which is understood by common
73-
debuggers like GDB. Adding support for debug info is fairly
74-
straightforward. The best way to understand it is to compile some
75-
C/C++ code with "``clang -g -O0``" and taking a look at what it
76-
produces.
7772
- **exception handling support** - LLVM supports generation of `zero
7873
cost exceptions <../ExceptionHandling.html>`_ which interoperate with
7974
code compiled in other languages. You could also generate code by

0 commit comments

Comments
 (0)