[llvm-dev] Use LLVM C API for reading metadata

Jeremy Morse via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 17 07:15:04 PDT 2018


Hi Guang,



The upcoming 7.0 release has more debug-info exposed by the C API,
including reading line and column information from DILocation's, as seen
here [0].



As for determining types, I believe all debug metadata attached directly to
instructions are DILocations, but navigating further into the debug info
structures isn't directly exposed by the C API.



[0]
https://github.com/llvm-mirror/llvm/blob/1d13545e10c5574a40821115d10c54c16f7c47be/include/llvm-c/DebugInfo.h#L396



--

Thanks,

Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180817/bad06925/attachment.html>


More information about the llvm-dev mailing list