[PATCH] Add a new pass to compute DWARF path discriminators.

Diego Novillo dnovillo at google.com
Tue Feb 11 09:08:18 PST 2014


On Mon, Feb 10, 2014 at 8:18 PM, Eric Christopher <echristo at gmail.com> wrote:
>
>   I think you're calling it with bad arguments - the Scope for a lexical block should never be NULL. You could probably just assert that in the DIBuilder. Look for the call to getNonCompileUnitScope - it's likely there that you're running into problems.

The problem seems to have been that I was modifying the newly created
LexicalBlock after creation. Not sure why. I suppose something was
caching it? But I'm not sure.

I've changed it so that the lexical block is created with the
appropriate discriminator value. This seems to work. I still don't
seem to be picking up discriminators from the binary. But I'm not sure
if it's a problem with the reader or they are not being written down.
How can I check that?


Thanks. Diego.



More information about the llvm-commits mailing list