[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:
Lang Hames 2019-11-06 14:37:04 -08:00
parent 7fbe5d4b2a
commit baaa097360
1 changed files with 3 additions and 3 deletions

View File

@ -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
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.
Example
@ -86,14 +86,14 @@ code via ``lli`` inside GDB:
.. code-block:: bash
$ $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.
(gdb) b showdebug.c:6
No source file named showdebug.c.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (showdebug.c:6) pending.
(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]
Breakpoint 1, compute_factorial (n=5) at showdebug.c:6