[llvm-dev] A freshman has a problem:How to get the specific source line number in LR

David Blaikie via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 13 11:04:16 PST 2022


https://llvm.org/doxygen/classllvm_1_1Instruction.html#ab4f3bf98b5054831b608852e33427814
is probably a good place to start

On Thu, Jan 13, 2022 at 10:48 AM 闫鑫 via llvm-dev <llvm-dev at lists.llvm.org>
wrote:

>    Thank you very much for reading my emails in your busy schedule.
>    I get the ll file with debug information by using the command "clang++
> xxx.c -g -S -emit-llvm -o xxx.ll".I want to get the line number information
> about the source code via "!DILocation". But I don't know how to use the
> API in PASS to get the Relevant metadata information.For example: (!24
> !DILocation(line 32,column 5,scope: !11)
>    I sincerely hope you can help me with this problem. Hope you are doing
> well and in good health.
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20220113/c0e417ab/attachment.html>


More information about the llvm-dev mailing list