Add flag to lli to enable debugging of IR when used with MCJIT.
authorDaniel Malea <daniel.malea@intel.com>
Fri, 28 Jun 2013 19:11:40 +0000 (19:11 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Fri, 28 Jun 2013 19:11:40 +0000 (19:11 +0000)
commite16e687034fb416f9e6f90d8e169cc8633c34f35
treeb5c4bef1c2439a526f72a5f1fdd41e6115c33fe6
parent8e6b2974327c733edf267e971ce5f8982421a888
Add flag to lli to enable debugging of IR when used with MCJIT.
- warn users when -debug-ir is used with old JIT engine (only partial debug
  info is available)

For example, to debug an IR file with GDB (that supports JIT registration), do:

$ gdb --args lli -use-mcjit -debug-ir testcase.ll
(gdb) break main
(gdb) run
<Process continues to lli main>
(gdb) continue
<Process continues to testcase.ll main()
(gdb) step
<Now stepping through the LLVM IR in testcase.ll>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185197 91177308-0d34-0410-b5e6-96231b3b80d8
tools/lli/CMakeLists.txt
tools/lli/LLVMBuild.txt
tools/lli/Makefile
tools/lli/lli.cpp