[PATCH] Output debug information for structure members only referenced by a pointer or typedef

Renato Golin renato.golin at linaro.org
Fri Jun 21 00:43:06 PDT 2013


On 20 June 2013 23:53, David Blaikie <dblaikie at gmail.com> wrote:

> Kind of - some of that is just compile time optimization. If we
> created two "int" types in LLVM IR metadata debug info then the
> metadata uniquing would kick in & it'd be fine. Not so clear with user
> defined types (structs, etc) which can have circular type references &
> the like which would be harder to break.
>

Yes, they still haunt my nightmares... ;)


Somewhat - uses in source don't correlate exactly with where the debug
> info is wired into the IR so we can't just rely on IR optimizations to
> preserve or drop debug info perfectly. At the moment there are cases
> where we aren't emitting types into the debug info where we should be
> - because we only emit them in particular cases. There are broader
> ways we can do this, but it's still a choice about when/where we do
> it.
>

Makes sense. Debug info is never as simple as you hope.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130621/95d751c8/attachment.html>


More information about the cfe-commits mailing list