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

2021-01-12 Thread David Blaikie via cfe-users
You'd have to get IR from somewhere that has attached debug info - such as clang -g On Tue, Jan 12, 2021 at 1:22 PM Bella V wrote: > Do we have to initially attach some metadata to the Value? Because in > function pass, when I do F.getAllMetadata(MDs), i do not see any metadata > appending to MD

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

2021-01-12 Thread Bella V via cfe-users
Do we have to initially attach some metadata to the Value? Because in function pass, when I do F.getAllMetadata(MDs), i do not see any metadata appending to MDS. F.hasMetadata() also returns false. What would be the way to get debugLoc in these scenario? Thanks and Regards. On Mon, Jan 11, 2021 a