[llvm-commits] [PATCH] [Review request] Adding line information support to the MCJIT event handling in IntelJITEventListener

Kaylor, Andrew andrew.kaylor at intel.com
Tue Jan 15 12:29:50 PST 2013


This patch adds a new method, getLineInfoForAddressRange, to the DIContext interface class and provides an implementation for that.  The implementation is closely modeled after the existing getLineInfoForAddress function and uses the same classes and data structures where possible.  The patch also updates the IntelJITEventListener class to use this new function and pass the line information along to the Intel JIT profiling API along with the functions.

I've only updated one of the three JitListener tests at this time.  The test-inline case exposes some problems that I still need to work on.  I haven't looked at the other test.  In their current state, the tests that I'm not updating do pass, they just don't verify the line number handling.  The test case that I did update was re-generated from a source file (parameters.cpp from the clang debuginfo tests).  The old test-parameters.ll file was generated with an older version of clang and had some problems in the debug metadata.

-Andy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130115/ad85601b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mcjit-event-debuginfo.patch
Type: application/octet-stream
Size: 46182 bytes
Desc: mcjit-event-debuginfo.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130115/ad85601b/attachment.obj>


More information about the llvm-commits mailing list