[llvm] baaa097 - [docs] Fix references to a renamed flag.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 14:45:48 PST 2019
Author: Lang Hames
Date: 2019-11-06T14:42:57-08:00
New Revision: baaa097360a0e92164119574febcc5613221fa0d
URL: https://github.com/llvm/llvm-project/commit/baaa097360a0e92164119574febcc5613221fa0d
DIFF: https://github.com/llvm/llvm-project/commit/baaa097360a0e92164119574febcc5613221fa0d.diff
LOG: [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!
Added:
Modified:
llvm/docs/DebuggingJITedCode.rst
Removed:
################################################################################
diff --git a/llvm/docs/DebuggingJITedCode.rst b/llvm/docs/DebuggingJITedCode.rst
index fad4c9bfd203..e4885e42fa10 100644
--- a/llvm/docs/DebuggingJITedCode.rst
+++ b/llvm/docs/DebuggingJITedCode.rst
@@ -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
More information about the llvm-commits
mailing list