[cfe-users] Get Source Location details from IR code (Function Pass)

2021-01-11 Thread Ayush Mittal via cfe-users
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

Re: [cfe-users] Get Source Location details from IR code (Function Pass)

2021-01-11 Thread David Blaikie via cfe-users
On Mon, Jan 11, 2021 at 4:33 PM Ayush Mittal via cfe-users < cfe-users@lists.llvm.org> wrote: > 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-> MD