[llvm-commits] don't emit debug info for all contexts

Eric Christopher echristo at apple.com
Thu Dec 1 17:22:19 PST 2011


On Nov 9, 2011, at 4:47 PM, Nick Lewycky wrote:

> This patch fixes PR11345, a case where we emit debug info for a class, just because we define a static member inside the class. This is implemented by changing getContextDescriptor() to use a newly refactored getTypeOrFwdDecl() method, instead of always requiring a full definition.
> 
> Please review! In particular, this patch causes the code that emits pointers which used to always emit a new fwd-decl of the record type, to now use the full type if that type is already defined and emitted. I don't think this has any ill effects, but it's difficult to prove.

I think this is fine. Thanks!

-eric




More information about the llvm-commits mailing list