forked from OSchip/llvm-project
[docs] Fix references to a renamed flag.
The -use-mcjit option was replaced with -jit-kind=mcjit a while back. This patch updates the docs to reflect that. Patch by Yu Jian. Thanks Jian!
This commit is contained in:
parent
7fbe5d4b2a
commit
baaa097360
|
@ -39,7 +39,7 @@ The emerging MCJIT component of LLVM allows full debugging of JIT-ed code with
|
||||||
GDB. This is due to MCJIT's ability to use the MC emitter to provide full
|
GDB. This is due to MCJIT's ability to use the MC emitter to provide full
|
||||||
DWARF debugging information to GDB.
|
DWARF debugging information to GDB.
|
||||||
|
|
||||||
Note that lli has to be passed the ``-use-mcjit`` flag to JIT the code with
|
Note that lli has to be passed the ``-jit-kind=mcjit`` flag to JIT the code with
|
||||||
MCJIT instead of the old JIT.
|
MCJIT instead of the old JIT.
|
||||||
|
|
||||||
Example
|
Example
|
||||||
|
@ -86,14 +86,14 @@ code via ``lli`` inside GDB:
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
$ $BINPATH/clang -cc1 -O0 -g -emit-llvm showdebug.c
|
$ $BINPATH/clang -cc1 -O0 -g -emit-llvm showdebug.c
|
||||||
$ gdb --quiet --args $BINPATH/lli -use-mcjit showdebug.ll 5
|
$ gdb --quiet --args $BINPATH/lli -jit-kind=mcjit showdebug.ll 5
|
||||||
Reading symbols from $BINPATH/lli...done.
|
Reading symbols from $BINPATH/lli...done.
|
||||||
(gdb) b showdebug.c:6
|
(gdb) b showdebug.c:6
|
||||||
No source file named showdebug.c.
|
No source file named showdebug.c.
|
||||||
Make breakpoint pending on future shared library load? (y or [n]) y
|
Make breakpoint pending on future shared library load? (y or [n]) y
|
||||||
Breakpoint 1 (showdebug.c:6) pending.
|
Breakpoint 1 (showdebug.c:6) pending.
|
||||||
(gdb) r
|
(gdb) r
|
||||||
Starting program: $BINPATH/lli -use-mcjit showdebug.ll 5
|
Starting program: $BINPATH/lli -jit-kind=mcjit showdebug.ll 5
|
||||||
[Thread debugging using libthread_db enabled]
|
[Thread debugging using libthread_db enabled]
|
||||||
|
|
||||||
Breakpoint 1, compute_factorial (n=5) at showdebug.c:6
|
Breakpoint 1, compute_factorial (n=5) at showdebug.c:6
|
||||||
|
|
Loading…
Reference in New Issue