On 20 June 2013 23:53, David Blaikie <[email protected]> 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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to