[cfe-users] Get Source Location details from IR code (Function Pass)
Ayush Mittal via cfe-users
cfe-users at lists.llvm.org
Mon Jan 11 16:33:27 PST 2021
Hello Cfe Users,
Could you please point to an effective way to get Source Location details
from an IR code.
>From the documentation, I think this could be a way:
Function Pass-> LLVM Value-> MDN->DILocation-> Source Location.
Please include any example if the above approach is correct too.
Thanks and Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users