diff options
| author | Daniel Malea <daniel.malea@intel.com> | 2013-06-28 19:11:40 +0000 |
|---|---|---|
| committer | Daniel Malea <daniel.malea@intel.com> | 2013-06-28 19:11:40 +0000 |
| commit | a960c54d3a1d05693c721527f83512404921d33b (patch) | |
| tree | 87f2696c3fa62465b098b23688b888cb966772ea /llvm/lib/Transforms/Instrumentation/DebugIR.cpp | |
| parent | 8d1e82243270f922058375ee0db2eed8a9e34138 (diff) | |
| download | bcm5719-llvm-a960c54d3a1d05693c721527f83512404921d33b.tar.gz bcm5719-llvm-a960c54d3a1d05693c721527f83512404921d33b.zip | |
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>
llvm-svn: 185197
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/DebugIR.cpp')
0 files changed, 0 insertions, 0 deletions

